Jump to content
Sign in to follow this  

Selecting the "Local" disk drive (C:)

Recommended Posts


i was hoping that someone can help me with this.

My script works like this.

Using keystroke, it goes to the "OPEN" file/folder to select the "license key"

The license key must be located in "C:" drive ( E.g "C:\XX Licenses)

Its based on "keystrokes" if i put "L" which is the shortcut for "Local disk(C:)" from the "Look in" dropdown box, it'll select that and my script would continue on further and it would work

However if the "Local disk(C:)" is change to anything else, it doesn't work and my script would fail.

So the question is, Does anyone know how can i select "C:" regardless of the name?

Share this post

Link to post
Share on other sites

So you want the systemdrive? Then use EnvGet() to get the value from the system environmental variable %SYSTEMDRIVE%.


Now you can use $SYSTEMDRIVE. In theory, I am not sure exactly of why your script is failing with your given description. If your using FileOpenDialog(), then it should have a parameter for initial directory.


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...