I'm using a .bat file to get some files from a shared folder on another computer in the same network. My challenge is that the shared folder is password protected. Is there a way to write username and password in a batch file when getting files from a shared folder located on another computer?
@echo off
Move /Y \\path\to\files\*.csv \\path\to\local\folder\
pause
Best Answer