I try to run the following program with parameters
program name: C:\WINDOWS\system32\rundll32.exe
parameters: D:\PROGRA~1\ThinkPad\UTILIT~1\pwrwiz.ocx,StartWizard ShowSchemePg
I use the following command:
run, C:\WINDOWS\system32\rundll32.exe"D:\PROGRA~1\ThinkPad\UTILIT~1\pwrwiz.ocx,StartWizard ShowSchemePg"
But I got an erro message. It seems like the parameter that AHK get is only
Params:<:\PROGRA~1\ThinkPad\UTILIT~1\pwrwiz.ocx>
How do I pass this parameter to program
Started by
oversky
, Feb 04 2006 04:10 AM
3 replies to this topic
#1
-
Posted 04 February 2006 - 04:10 AM
It is necessary to escape the comma as follows:
pwrwiz.ocx`,StartWizard
#2
-
Posted 04 February 2006 - 04:25 AM
Thanks for the hint. I made it work as
run, C:\WINDOWS\system32\rundll32.exe D:\PROGRA~1\ThinkPad\UTILIT~1\pwrwiz.ocx`,StartWizard ShowSchemePg
I would suggest having some examples in the help of the run command.
run, C:\WINDOWS\system32\rundll32.exe D:\PROGRA~1\ThinkPad\UTILIT~1\pwrwiz.ocx`,StartWizard ShowSchemePg
I would suggest having some examples in the help of the run command.
It is necessary to escape the comma as follows:
pwrwiz.ocx`,StartWizard
#3
-
Posted 04 February 2006 - 04:04 PM
There is documentation in the "FAQ" section of the documentation:
When should percent signs and commas be escaped?
...
Literal commas must also be escaped (`,) except when used in MsgBox or the last parameter of any command (in which case the accent is permitted but not necessary).
When commas or percent signs are enclosed in quotes within an expression, the accent is permitted but not necessary. For example: Var := "15%".
#4
-
Posted 04 February 2006 - 07:47 PM