anystupidassname Posted July 29, 2005 Posted July 29, 2005 (edited) Sorry, another stupid question from yours truly: I'm trying to figure out this command line thing. I'd like for boobies to download when the compiled script is run without parameters and pron to download when I use the /rr switch. Am I anywhere close? If $CmdLine[0] > 0 Then $blah = $CmdLine[1] EndIf If $blah = rr Then $gd = InetGet("ftp://ftp.pron.com/whatever/boobies.exe", $sac & "blah.exe", 1, 0) Else $gd = InetGet("ftp://ftp.pron.com/whatever/pron.exe", $sac & "blah2.exe", 1, 0) EndIf If $gd <> 1 Then MsgBox(48, "Error Downloading", "Tried for 30 minutes and was unable to download update!") Edited July 29, 2005 by anystupidassname This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#.......
GaryFrost Posted July 29, 2005 Posted July 29, 2005 anystupidassname said: Sorry, another stupid question from yours truly:I'm trying to figure out this command line thing. I'd like for boobies to download when the compiled script is run without parameters and pron to download when I use the /rr switch. Am I anywhere close?If $CmdLine[0] > 0 Then $blah = $CmdLine[1] EndIf If $blah = rr Then $gd = InetGet("ftp://ftp.pron.com/whatever/boobies.exe", $sac & "blah.exe", 1, 0) Else $gd = InetGet("ftp://ftp.pron.com/whatever/pron.exe", $sac & "blah2.exe", 1, 0) EndIf If $gd <> 1 Then MsgBox(48, "Error Downloading", "Tried for 30 minutes and was unable to download update!") <{POST_SNAPBACK}>1st: you have your boobies in the if instead of the else2nd: if your using /rr shouldn't it be if StringInStr($blah,"/rr") then SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
anystupidassname Posted July 29, 2005 Author Posted July 29, 2005 Got it working. Thanks! This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#.......
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