Jump to content
Sign in to follow this  
star2

@system dir help

Recommended Posts

star2

correct me if I'm wrong

@systemDir = System32 dir

what about if I want to use the main roon

example my main root is [ c: ] how can I do so?


[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Share this post


Link to post
Share on other sites
MHz

Or you can get the System Drive from the Environmental Variable %SystemDrive%.

; SystemDrive (drive where system folders located)
$systemdrive = EnvGet('systemdrive')
MsgBox(0, 'System drive is:', $systemdrive)

; HomeDrive (drive where Users\Docs & Settings located)
MsgBox(0, 'Home drive is:', @HomeDrive)

You could also use @HomeDrive, but the system drive can be different to home drive if the home path directory has been moved to another drive.

:)

Share this post


Link to post
Share on other sites
star2

Or you can get the System Drive from the Environmental Variable %SystemDrive%.

$systemdrive = EnvGet('systemdrive')

You could also use @HomeDrive, but the system drive can be different to home drive if the home path directory has been moved to another drive.

:)

this is exactly what I need thank you it worked just fine

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

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  

×