July 22, 200620 yr 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, 200620 yr by Cryptor
July 24, 200620 yr 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.
Create an account or sign in to comment