Hello @Ashwan
A mapped drive is simply an alias for a UNC (Universal Naming Convention)
name. So just use the UNC name instead. If drive
"Z:" is mapped to \ServerName\ShareName then the command:
copy YourFile Z:\SomeFolder
is the same as:
copy YourFile \ServerName\ShareName\SomeFolder
More: if you
have \server\share mapped to d: and would normally copy to the filename
"d:\myfile.dat", instead use the filename "\server\share\myfile.dat"
Hope this helps with your query!
----------
--If the reply is helpful, please Upvote and Accept as answer--