Jump to content

Recommended Posts

Posted (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 by almostnotstupid
Posted (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 by Mat
Posted (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 by almostnotstupid

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...