Jump to content


Click the link below to see the new game I'm developing!


Photo
- - - - -

SYSTEMROOT


3 replies to this topic

#1 tom braider

tom braider

    Member

  • Validating
  • PipPip
  • 28 posts
  • Gender:Male

Posted 29 February 2008 - 12:13 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

#2 tom braider

tom braider

    Member

  • Validating
  • PipPip
  • 28 posts
  • Gender:Male

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 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

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.
Things should be made as simple as possible, but not simpler

#4 tom braider

tom braider

    Member

  • Validating
  • PipPip
  • 28 posts
  • Gender:Male

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

Click the link below to see the new game I'm developing!