Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Okay first off this is a disturctive script, so be CAREFUL!

*Update*

Major changes to the script...its now a lot safer of a script to use and frankly a lot more powerful and user friendly.

Archives inside of archives are safe now.

The behavior of the script now is that any archive on the same directory level as the script will be extracted into a folder bearing the same name of the archive, then that archive is deleted....then the script checks all folders on its level for more archives...any archives found in those folders will be extracted with in the same folder...then deleted.

In all cases if a like named file is encountered it will be overwritten.

If you want to keep the original archives...back them up prior to using this script because they will be deleted upon execution of the script.

The script only goes one level down...so a folders deeper than that...will not be touched.

script.au3

sample.rar <-extracted to folder "sample"

folder\sample.rar <-extracted with in current folder

folder\folder\sample.rar <-untouched

Posted

Nologic: I really wish you would try out coding in something like C#. Then you could create a full interface and everything for some of your tools. I guess it's alot of time and effort to learn a new language, but I just think you have what it takes to do it.

Also, I'm here to help if you have any problems.

Just a thought ;)

Posted

Actually you can make interfaces with AutoIt to a limited degree.

Hehe I don't know if its a lot of time or not...hehe actually haven't learned AutoIt...just kind of fudge through it. ;)

Okay I'll look into it...just keep in mind I haven't really programmed since before there were GUI's. ;)

Which kind of explains why my scripts don't have them ether...even tho they are possible. hehe

Posted

GUI's are easy. Download Visual Studio C# 2005 Express, and prepare to be daunted at first. Making GUI's are easy. Simple matter of drawing them on the form. Follow this simple tute on making a simple interface that browses for a file, and displays the file name in a textbox.

Load up Visual Studio Express 2005 then select File->New->Windows Application

1. Create a textbox on the form by selecting it from the toolbox on the left of the screen (You may need to show it by selecting View->Toolbox).

2. Drag it out the size you want.

3. Create a button, place "..." in the text properties of the button.

4. Double click on the button on the form to create the default event for it (button1_Click())

5. In the buttons event add the following...

private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog fd = new OpenFileDialog();

if(fd.ShowDialog(null) == DialogResult.OK)
{
textBox1.Text = fd.FileName;
}
}

Select Debug->Start Debugging to run your program. Click the button, and browse for a file. Simple first application in C#!

Posted

Heh AutoIt version of the same thing:

$message = "Hold down Ctrl or Shift to choose multiple files."

$var = FileOpenDialog($message, "C:\Windows\", "Images (*.jpg;*.bmp)", 1 + 4 )

If @error Then
MsgBox(4096,"","No File(s) chosen")
Else
$var = StringReplace($var, "|", @CRLF)
MsgBox(4096,"","You chose " & $var)
EndIf

Guest
This topic is now closed to further replies.
×
×
  • Create New...