star2 Posted May 16, 2007 Share Posted May 16, 2007 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] Link to comment Share on other sites More sharing options...
erebus Posted May 16, 2007 Share Posted May 16, 2007 Use relative paths. I.e.: FileWriteLine(@WindowsDir & "\..\test.txt", "test") Link to comment Share on other sites More sharing options...
MHz Posted May 16, 2007 Share Posted May 16, 2007 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. Link to comment Share on other sites More sharing options...
star2 Posted May 16, 2007 Author Share Posted May 16, 2007 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now