Cryptor Posted July 22, 2006 Posted July 22, 2006 (edited) Hi, i will download a file with wget.I will rename the file in my autoit script. I can´t! Please help! Download the newest filebla32*.exeRename the filebla32.*date*.exe to bla32.exeRun the filebla32.exeAutoIt CodeRunWait(@ComSpec & " /c " & 'wget.exe -P %snapshotpath% ftp://ftp......../bla32*.exe', "",) Run(@ComSpec & " /c" & '%snapshotpath%bla32.exe',"", @SW_HIDE)DOS Codewget.exe ftp://ftp......../bla32*.exeren bla32*.exe bla32.exestart bla32.exe Edited July 22, 2006 by Cryptor
blinkdt Posted July 24, 2006 Posted July 24, 2006 From the AutoIt HELP file:Because AutoIt lacks a "FileRename" function, use FileMove to rename a file!Wildcards are supported, looks like you are in luck. Something like...FileMove( @ScriptDir & "\bla32*.exe", @ScriptDir & "\bla32.exe")...run from the same directory containing the file should do the trick.Good luck.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now