Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Path does not allow previously mounted UNC/network paths to be used #57

Open
AlphaWHH opened this issue Jun 20, 2024 · 0 comments
Open

Comments

@AlphaWHH
Copy link

AlphaWHH commented Jun 20, 2024

File Path does not allow previously mounted UNC/network paths to be used since the program runs under admin privileges and cannot access the previously mounted drives

The example code works for me and should require minimal edits to integrate it into the code base.

"%~dp0BAT\Diagbox" gd 06
"%~dp0BAT\Diagbox" gd 0f
echo\
echo Do you want to setup windows network file share?
ECHO.
ECHO  [1] Yes
ECHO  [2] No
ECHO.

"%~dp0BAT\Diagbox" gd 0f
CHOICE /C 12 /M "Select Option:"
  if !errorlevel!==1 (
  echo UNC PATH Example \\server\sharename
  set /p "UNCPATH=Enter the path where your PS2 Games are located:"
  if "!UNCPATH!"=="" set "UNCPATH="
  net use * "!UNCPATH!" /persistent:no
  net use
  )
pause & (goto mainmenu)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant