![]() |
#1 |
Junior Member
Join Date: Jan 2014
Posts: 4
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You can use ` for the outer quotes:
ExecWait `schtasks /change /TN '"\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem"' /DISABLE` Stu |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jan 2014
Posts: 4
|
![]()
Whow ! How fast you are ! Thank you.
Unfortunately it is not working. Its possible to compile now, but log shows an error. I wrote it like this: ExecWait `$SYSDIR\schtasks /change /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /DISABLE` $0 is there anything wrong with it? After running the scriopt die log appears: Execute: C:\Windows\system32\schtasks /change /TN '"\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem"' /DISABLE Result: -502655360 Completed See also attached file line 46 |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Try:
ExecWait `"$SYSDIR\schtasks.exe" /change /tn "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable` $0 Stu |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jan 2014
Posts: 4
|
![]()
hurray,
stu, you are the best! many many thanks ! I was really on the verge of giving up and to find a other, not that confortable solution. I note on my skript commend (sorry, its german): "vielen vielen Dank an Stu (Afrow UK) von den http://forums.winamp.com/'Winamp Forums > Developer Center > NSIS Discussion' For all other who read this thread cause they having the same problem. The right term is: ExecWait `"$SYSDIR\schtasks.exe" /change /tn "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable` $0 Many greetings from Germany Last edited by heinz_ketchup; 31st January 2014 at 11:03. |
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Jan 2014
Posts: 4
|
Double, please delete. Thx
Last edited by heinz_ketchup; 31st January 2014 at 11:01. |
![]() |
![]() |
![]() |
|
Tags |
execwait, quotation marks |
Thread Tools | Search this Thread |
Display Modes | |
|
|