Jump to content
Sign in to follow this  
shawnmstout

System Drive Letter

Recommended Posts

shawnmstout

say the system drive is f instead of c, what is the variable i use to setup just the system drive letter?

Share this post


Link to post
Share on other sites
MDCT

I don't know if there's special macro for it, but you could use @SystemDir to get system32 directory, then use StringLeft to get the first character, which is the drive letter.

Where's my manner, welcome to the forum!

Since this is your first post. Try this:

$System32Dir=@SystemDir
$SystemDriveLetter=Stringleft($System32Dir,1)
msgbox(0,0,'System drive letter is: ' & $SystemDriveLetter)
Edited by MDCT

Share this post


Link to post
Share on other sites
shawnmstout

actually i figured it out but thanks for replying

$drive = EnvGet("systemdrive"); Sets the System Drive for the Customer Computer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.