Below is code for a batch file, loosely based on something i found on the internet. Ultimately, I'm trying to call one of two different batch files. It doesn't seem to acknowledge Bob'sbatchfile.bat. The file name and location are correct. Any ideas how to make the first instance work? I haven't started working on the second instance yet.
@ECHO OFF
CLS
ECHO 1.In office startup
ECHO 2.Out of office startup
ECHO.
CHOICE /C 12 /M "Enter your choice:"
:: Note - list ERRORLEVELS in decreasing order
IF ERRORLEVEL 2 GOTO OutOfOffice
IF ERRORLEVEL 1 GOTO InOffice
:InOffice
ECHO InOffice
cd "\C:\Users\usdeprha\Localdocuments\Startupfiles\"
call "Bob'sbatchfile.bat"
pause
GOTO End
:OutOfOffice
ECHO "Out of office"
::start cmd /c C:\Users\usdeprha\Localdocuments\Startupfiles\Bob'sbatchfile.bat
GOTO End
END
I tried the code above. I've tried cd call"\C:\Users\usdeprha\Localdocuments\Startupfiles"Bob'sbatchfile.bat" None seem to work.
/dto also change the drive (if applicable):cd /d "c:\users\etc