I try to move a file on a network resource to another network resource using a batch file. My problem is that Windows command processor doesn't support a UNC path as current directory on execution of a batch file.
Is there any way to bypass the problem?
This is my batch file:
@Echo off
setlocal EnableExtensions
pushd (what do I have to include here?)
for /f "delims=" %%g in ('DIR /b /a-d /od /tw') do (
set zold=%%g
set zoldname=%%~ng
goto movefile
)
:movefile
move "\\B-NAS\Pfad1\Pfad2\Pfad3\%zold%" "\\B-NAS\Pfad1\Pfad2\Pfad3\%zold%.Test1"
timeout /t 3
move /y "\\wfsaw\AWP\Doku\%zold%.Test1" "\\wfsaw\AWP\Doku\%zoldname%.Test2"
popd
pause
exit /b