Announcement

Collapse
No announcement yet.

Invalid path or file not found for 2 users - drives mapped same as other users

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Invalid path or file not found for 2 users - drives mapped same as other users

    Hello,

    I have a project that launches another application from a mapped drive (drive mapped through domain login script). It works on 20 desktops, but not on 2... all users have the same permissions/rights to that mapped drive.

    So 20 people can launch the app - 2 cannot - get an error that the path is not valid or does not exist. The same users can manually go to the file in Windows Explorer (in the mapped drive) and launch it.

    This is the script that is associated with the button:

    result = Shell.Execute("R:\\SAMSVision\\runcheq.bat", "open", "", "R:\\SAMSVision\\", SW_SHOWNORMAL, false);

    Can I make a change that will fix this for them?

  • #2
    You can modify the code as follows :


    PHP Code:
    --
    Drive.Enumerate();
    for 
    is in pairs(t)do
      if 
    s=="R:\\" then
        result 
    Shell.Execute("R:\\SAMSVision\\runcheq.bat""open""""R:\\SAMSVision\\"SW_SHOWNORMALfalse);   
        
    x=1;
        break
        else
         
    x=0;
      
    end
    end

    if x==0 then
       x 
    Dialog.FileBrowse(true"Locate File"_DesktopFolder"All Files (*.runcheq.bat)|*.runcheq.bat|""""dat"falsefalse);
    end 

    Comment

    Working...
    X