Skip to content

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

@AlphaWHH

Description

@AlphaWHH

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions