View Single Post
Old 30th January 2014, 16:57   #1
heinz_ketchup
Junior Member
 
Join Date: Jan 2014
Posts: 4
Question Using ExecWait with quotation marks in command

Hi there all,

I cant find the correct term to run in ExecWait.
The comand line is working:

c:\windows\system32\schtasks /change /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /DISABLE


I tried to include it in my script by I didnt find the right term. I tried:

ExecWait '"$SYSDIR\schtasks" /change /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /DISABLE' $0
or
StrCpy $1 "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem"
ExecWait '"$SYSDIR\schtasks" /change /TN' "$1" /DISABLE' $0


Can anybody give me a hand?

Thank you.
heinz_ketchup is offline   Reply With Quote