kiboost Posted January 21, 2011 Share Posted January 21, 2011 (edited) Hi, I have some machines with network shared drives, and am writing a script that put shortcuts in a tray menu (and other things, but that's the part here) Here is my script : $Tray_mydir = TrayCreateItem("mydir") TrayItemSetOnEvent(-1,"Tray_mydir") Func Tray_mydir() ShellExecute("explorer", ***mydir***) EndFunc in function code, if I put mydir as an unc path \\myserver\dir it works, but if I put W:\mydir which is a network shared drive it doesn't work, it put me on mydocuments. It works as administrator only. Shared drivers are accessibles and mapped in explorer as users allways go there. The script (in task manager) execute itself with the same account name, but it doesn't access it. No problem for locals drives or unc path. So how can I have this working with network shared drives letters ? Thks Kib Edited January 21, 2011 by kiboost Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 Link to comment Share on other sites More sharing options...
kiboost Posted January 21, 2011 Author Share Posted January 21, 2011 Like too often, we spend time searching a solution, finnally we decide to ask, and a few minutes later, we find the solution !! Run("explorer.exe"&$mydir) Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now