Jump to content

open directory


Recommended Posts

hi,

i'm writing my first script and I have a problem.

I can't found the function which allow me to open a specific drive (for example: "o:\") so the user can explore the o-drive

can somebody help me?

by,

filip

Edited by filipvds
Link to comment
Share on other sites

hi,

i have a solution. This is my full script and it's the result i wanted:

$var = DriveStatus( "o:\" )
if ($var = 'INVALID') Then
    DriveMapAdd ( "o:", "\\server\data$")
    $var = DriveStatus( "o:\" )
    if ($var = 'INVALID') THEN
        msgbox(0, "Error", "Not possible to create the o-drive! Check your network settings!", "");
    Else
        ShellExecute("explorer.exe", "o:\")
    endif 
else
    ShellExecute("explorer.exe", "o:\")
endIf

btw: i didn't see the other reply's. You were to fast for me :-)

thanks!

Edited by filipvds
Link to comment
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
 Share

  • Recently Browsing   0 members

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