Jump to content

cmdline = brainfry


Recommended Posts

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 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#.......

Link to comment
Share on other sites

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 else

2nd: 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.

 

Link to comment
Share on other sites

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#.......

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...