Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Executing Long Commands
#1
This should be a simple question for the gurus.
I would like to somehow set (say in a variable) the long string of the full path of a program.exe,
and the long strings of the parameters being passed. Then to execute the program with the short variables.

Example:

Code:
Copy      Help
PROGRAM = C:\Users\username\AppData\Local\SomeProgram\Program.exe
SRLP1 = SomeReallyLongParameter1
SRLP2 = SomeReallyLongParameter2
SRLP3 = SomeReallyLongParameter3
SRLP4 = SomeReallyLongParameter4
SRLP5 = SomeReallyLongParameter5

Example how to run it:
Code:
Copy      Help
MY_PROGRAM :run "PROGRAM" "SRLP1" "SRLP2"

Instead of:
Code:
Copy      Help
C:\Users\username\AppData\Local\SomeProgram\Program.exe "SomeReallyLongParameter1" "SomeReallyLongParameter2"

Thank you so much


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)