|Not underatanding this...|
"tried both suggestions no luck - am not even changing drives, just want to change directories..."
did you do a...
in the c:\hello\world directory??? That should change the directory. It could be long directory names in which case you need quotes around your command like in the following...
c:\hello\world\> "cd\hello world\"
Because the directory name is longer than 8 characters and has special characters like spaces then you need quotes around your command. This is also assuming the directory exists.
P.S. Can you post the code you have so far so we can help you achieve your original goal?
If it helps her is a backup script I have for my users using ROBOCOPY as my backup tool but you could use XCOPY if you feel like it...
@taskkill /im outlook.exe
@echo Backing up local files...
if not exist \\10.100.100.7\backups\userfiles\%username% goto createdir
@\\10.100.100.7\scripts\robocopy "%userprofile%" \\10.100.100.7\backups\userfiles\%username%\Daily *.do* /if *.xl* /if *.pdf /if *.pp* /if *.txt /XD %userprofile%\AppData /XD "%userprofile%\local settings" /XD "%userprofile%\Application Data" /s /COPY:DAT /r:1 /w:1 /np /xo /eta >> h:\BackupLog.txt
echo Backing up Email...
ver | find "Version 5." > nul
if %ERRORLEVEL% == 0 \\10.100.100.7\scripts\robocopy "%userprofile%" \\10.100.100.7\backups\userfiles\%username%\%monthfolder% *.pst* /s /COPY:DAT /r:1 /w:1 /np /xo /eta >> h:\BackupLog.txt
Note the "ver | find "Version 5." > nul
if %ERRORLEVEL% == 0" is for the Windows Vista and 7 computers because of their different directory structure.