34 lines
868 B
Batchfile
34 lines
868 B
Batchfile
@echo off
|
|
echo Setting up network drive R: for User account...
|
|
|
|
:: Map network drive with guest access
|
|
echo Mapping \\192.168.88.231\RD to R: drive...
|
|
net use R: \\192.168.88.231\RD /user:guest "" /persistent:yes
|
|
|
|
if %errorlevel%==0 (
|
|
echo.
|
|
echo [SUCCESS] Network drive R: mapped successfully!
|
|
echo Target: \\192.168.88.231\RD
|
|
echo Drive: R:
|
|
echo Access: Anonymous/Guest
|
|
echo.
|
|
echo Opening File Explorer to show the drive...
|
|
explorer /select,R:\
|
|
echo.
|
|
echo Drive R: is now available in File Explorer.
|
|
echo This mapping will persist after reboot.
|
|
echo.
|
|
) else (
|
|
echo.
|
|
echo [ERROR] Failed to map network drive R:
|
|
echo Please check network connectivity to 192.168.88.231
|
|
echo.
|
|
)
|
|
|
|
echo.
|
|
echo This setup file will now delete itself...
|
|
timeout /t 3 /nobreak >nul
|
|
|
|
:: Self-delete this batch file
|
|
del "%~f0"
|
|
exit |