batch file will not copy needed files

Status
Not open for further replies.

anti matrix

Honorable
Jan 19, 2014
1
0
10,510
this is the code i am using an di can not seem to get it to copy the files i need

@echo off
Color a
md %~d0\networksettings
md %~d0\networksettings\wireless
md %~d0\networksettings\wired
cd/

copy "C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\*.xml" "%~d0:\networksettings\wireless"
copy "C:\ProgramData\Microsoft\WwanSvc\Profiles\Interfaces\*.xml" "%~d0:\networksettings\wired"
pause
exit
 
Try no to over simplify your code. Specify exactly from root where you want to make your directories and where your files are and so on.
 
Status
Not open for further replies.

TRENDING THREADS