microbious Posted November 16, 2009 Posted November 16, 2009 (edited) Cant find a way to get into root of working hard drive CMD has %SOURCE% variable, but autoit (i just cant find any) Do you guys know a simple way to get to ROOT of currently working hard drive ? Thanks in advance. I just want to copy file from @scriptDir into root of hard drive where script is executed from. Edited November 16, 2009 by almostnotstupid
jvanegmond Posted November 16, 2009 Posted November 16, 2009 Currently working hard drive of what? @HomeDrive might do. github.com/jvanegmond
Mat Posted November 16, 2009 Posted November 16, 2009 (edited) Currently working hard drive of what? @HomeDrive might do. does the working drive have to be the homedrive? StringLeft (@Workingdir, 2) Thats what I think he's asking for... Mat Edit: Or where the script is executed from: StringLeft (@ScriptFullPath, 2) Edited November 16, 2009 by Mat AutoIt Project Listing
jvanegmond Posted November 16, 2009 Posted November 16, 2009 It doesn't, that's why I asked the question "Currently working hard drive of what?" and offered a simple solution in advance so he could evaluate that and might not even have to answer my question. Way ahead of you. github.com/jvanegmond
microbious Posted November 16, 2009 Author Posted November 16, 2009 (edited) It doesn't, that's why I asked the question "Currently working hard drive of what?" and offered a simple solution in advance so he could evaluate that and might not even have to answer my question. Way ahead of you.yes it had to be currently working hard drive.Thanks to other guy for sting, i am still learning use of strings management so i would not know this one. Kinda wish autoit had a macro for it, maybe @source ?That would be great Edited November 17, 2009 by almostnotstupid
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