GOAL: Execute a COMMAND.CMD via Flash drive and make this Flash Drive the destination of the COMMAND.CMD.
PROGRESS: With success, I?m able to use ROBOCOPY with Log Option and save that Log on the Flash Drive.
Here?s the CMD that I?m using:
ROBOCOPY C:\ C:\xfolder /MIR /XA:SH /XJD /R:1 /W:2 /ETA /X /FP /LOG:xfile.log
(Usually more specific with a Source)
Here?s the Autorun.inf that I?m using:
[autorun]
icon=my.ico.
label=Gathering
open=gatherbkup.cmd
action=Back List
shell\open\command=gatherbkup.cmd
Here?s my question:
I?m using this file via Flash Drive, if I wanted the CMD to put files on this Flash Drive, How would I tell the CMD to do so?