SYSTEMROOT
#2
Posted 29 February 2008 - 03:55 PM
Hi,
Can anyone tell me if I can replace WINDOWS with %SystemRoot%. For example, currently I am using the command;
#A = SYSTEM('GUI WINDOWS ASYNC C:\WINDOWS\system32\calc.exe')
I want to replace WINDOWS with %SystemRoot%.
Cheers
Answered half my question in that I still don't know if I can use %SystemRoot% but if I omit C:\WINDOWS\system32 then it still seemd to work. I.e. #A = SYSTEM('GUI WINDOWS ASYNC calc.exe')
Edited by tom braider, 29 February 2008 - 03:58 PM.
#3
Posted 29 February 2008 - 08:45 PM
Hi,
Can anyone tell me if I can replace WINDOWS with %SystemRoot%. For example, currently I am using the command;
#A = SYSTEM('GUI WINDOWS ASYNC C:\WINDOWS\system32\calc.exe')
I want to replace WINDOWS with %SystemRoot%.
Cheers
Answered half my question in that I still don't know if I can use %SystemRoot% but if I omit C:\WINDOWS\system32 then it still seemd to work. I.e. #A = SYSTEM('GUI WINDOWS ASYNC calc.exe')
The following may give you what you want
#WINDOWS = CLIENT.GetPath("%WINDOWS%",$WINDOWS_DIR)
I would also suggest that you use the Client.Execute command instead of the SYSTEM('GUI WINDOWS.....) as the former is allot faster and has more features. I am not even sure if the SYSTEM('GUI command is even supported anymore.
#4
Posted 01 March 2008 - 11:37 AM
Hi,
Can anyone tell me if I can replace WINDOWS with %SystemRoot%. For example, currently I am using the command;
#A = SYSTEM('GUI WINDOWS ASYNC C:\WINDOWS\system32\calc.exe')
I want to replace WINDOWS with %SystemRoot%.
Cheers
Answered half my question in that I still don't know if I can use %SystemRoot% but if I omit C:\WINDOWS\system32 then it still seemd to work. I.e. #A = SYSTEM('GUI WINDOWS ASYNC calc.exe')
The following may give you what you want
#WINDOWS = CLIENT.GetPath("%WINDOWS%",$WINDOWS_DIR)
I would also suggest that you use the Client.Execute command instead of the SYSTEM('GUI WINDOWS.....) as the former is allot faster and has more features. I am not even sure if the SYSTEM('GUI command is even supported anymore.
Thanks Darren, I shall give that a try.
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users