I have a storage folder on a network in which all users will store their active data on a server. Now that server is going to be replaced by a new one due to place problem s
if you want to copy file not using absolute path, relative path in other words:
don't forget to write backslash in the path AND NOT slash
example :
copy children-folder\file.something .\other-children-folder
PS: absolute path can be retrieved using these wildcards called "batch parameters"
@echo off
echo %%~dp0 is "%~dp0"
echo %%0 is "%0"
echo %%~dpnx0 is "%~dpnx0"
echo %%~f1 is "%~f1"
echo %%~dp0%%~1 is "%~dp0%~1"
check documentation here about copy : https://technet.microsoft.com/en-us/library/bb490886.aspx
and also here for batch parameters documentation: https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true