Jump to content

Start script from Scite with parameters


psc
 Share

Recommended Posts

Many thanks, works perfect! :geek:

But in my special case I have up to 6 parameters

If $CmdLine[0]== 0 Then

$Msg0 = "Syntax:" & @LF & @LF

$Msg1 = "pscBuildPCInfo -f [<Map File>] [-p [<Password>]] [-s] [-m]" & @LF & @LF

$Msg2 = "-s : Process Serial Numbers" & @LF

$Msg3 = "-m : Process Mount Information" & @LF

$Msg4 = "Default Map File : '" & $PscMapFile & "'" & @LF

$Msg5 = "Default Password : '" & $PWD & "'" & @LF

MsgBox(16, "pscBuildPCInfo", $Msg0 & $Msg1 & $Msg2 & $Msg3 & $Msg4 & $Msg5)

EndIf

????

psc :o

This text contains 100% recyclable bits and bytes only!

Link to comment
Share on other sites

I never knew about that Shift + F8...

I just wrote a second script that launches the main script with the proper command line switches.

I can't find it right now but you have to call AutoIT with a switch to the script then add your switches to that...

If I find it I'll update this post.

Found it.

Run('"' & @AUTOITEXE & '"' & ' "Your Scripts Full Path.au3" /Switch1 /Switch2 /Switch3 /Switch4 /Etc')

Mike

Edited by MikeOsdx
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...