System variables

H

HMS Surprise

Greetings,

I am trying some system variable that appear in shortcut targets as in
the 2 lines below. I looked at environment variables but did not find
them there. I know that SystemRoot is usually c:\windows but I want to
make my code robust.

Thanks,

jh

%SystemRoot%\system32\odbcad32.exe

%HOMEDRIVE%%HOMEPATH%
 
T

Terry

On 4/18/2007 10:30 AM On a whim, HMS Surprise pounded out on the keyboard
Greetings,

I am trying some system variable that appear in shortcut targets as in
the 2 lines below. I looked at environment variables but did not find
them there. I know that SystemRoot is usually c:\windows but I want to
make my code robust.

Thanks,

jh

%SystemRoot%\system32\odbcad32.exe

%HOMEDRIVE%%HOMEPATH%

Hi jh,

Open a command prompt (Start, Run, type cmd click OK). Type set and
press enter. There are many variables there you can use.

--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
H

HMS Surprise

On 4/18/2007 10:30 AM On a whim, HMS Surprise pounded out on the keyboard



Hi jh,

Open a command prompt (Start, Run, type cmd click OK). Type set and
press enter. There are many variables there you can use.

--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.

Thanks for posting, Terry.

Is it possible to run this as a system type command from a script such
as AutoIt?


Thanks again,

jh
 
T

Terry

On 4/18/2007 11:10 AM On a whim, HMS Surprise pounded out on the keyboard
Thanks for posting, Terry.

Is it possible to run this as a system type command from a script such
as AutoIt?


Thanks again,

jh

Don't use it, but you could ask them directly:
supportATautoitscriptDOTcom (remove capitals and replace with characters)

--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
H

HMS Surprise

On 4/18/2007 11:10 AM On a whim, HMS Surprise pounded out on the keyboard








Don't use it, but you could ask them directly:
supportATautoitscriptDOTcom (remove capitals and replace with characters)

--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.

Thanks,all

jh
 
R

Ron Martell

Newbie Coder said:
HMS

You can set them in the autoexec.bat file

Guess again. Windows XP does not recognize or process an autoexec.bat
file.

Ron Martell Duncan B.C. Canada
--
Microsoft MVP (1997 - 2008)
On-Line Help Computer Service
http://onlinehelp.bc.ca
Syberfix Remote Computer Repair

"Anyone who thinks that they are too small to make a difference
has never been in bed with a mosquito."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top