Jump to content

help ... request a guaranteed way for explorer


Recommended Posts

hello everybody

I have big problem :

I put an autoit-script.exe in a specific folder for example : folder2

file location : D:\folder1\folder2\autoit-script.exe

I intend to open the folder which contain the autoit-script.exe

so I put this script in the file to open folder2 in new window

Run("Explorer.exe D:\folder1\folder2")

and this script work very well

but when I wanna open a specific folder in cdrom I don't know what drive name would be

so I tried this script :

Run("Explorer.exe folder2")

this script work very well in windows xp but when I run it in vista always explore Documents

so .. I wanna a guaranteed way to open a specific folder Regardless of drive name C,D,E,...etc and work in all windows versions

help me please

thanks so much

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...