batch file will not copy needed files

Status
Not open for further replies.

anti matrix

Honorable
Jan 19, 2014
1
0
10,510
0
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
 

bmanv13

Honorable
Jan 3, 2013
12
0
10,570
1
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.
Thread starter Similar threads Forum Replies Date
David___Only Apps General Discussion 0
S Apps General Discussion 4
M Apps General Discussion 3
D Apps General Discussion 2
N Apps General Discussion 1
NoctisLionward Apps General Discussion 2
malavena Apps General Discussion 3
Tom Waller Apps General Discussion 2
P Apps General Discussion 1
S Apps General Discussion 4
A Apps General Discussion 13
Z Apps General Discussion 1
P Apps General Discussion 7
deadmuse Apps General Discussion 1
J Apps General Discussion 1
P Apps General Discussion 1
C Apps General Discussion 1
W Apps General Discussion 4
R Apps General Discussion 1
P Apps General Discussion 5

ASK THE COMMUNITY