Jump to content
Sign in to follow this  
microbious

how to get to root ?

Recommended Posts

microbious

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 by almostnotstupid

Share this post


Link to post
Share on other sites
Mat

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 by Mat

Share this post


Link to post
Share on other sites
jvanegmond

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.

Share this post


Link to post
Share on other sites
microbious

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 by almostnotstupid

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.