Link to home
Start Free TrialLog in
Avatar of Bharat Guru
Bharat Guru

asked on

How to copy the files in dos without prompting the (F = file, D = directory)?

How to copy files with creating new folder from dos prompt without prompting the (F = file, D = directory)? F, I want to copy the files and if destination subfolder does not exists then automatically create one.

Xcopy C:\test\test.txt d:\test\test.txt
Xcopy C:\test\1\test.txt d:\test\1\test.txt
Xcopy C:\test\1\2\test.txt d:\test\1\2\test.txt

(F = file, D = directory)? F
Avatar of bbao
bbao
Flag of Australia image

just use "/i" switch.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would look at gscopy I love it, it also lets you use vss to copy open files, its dos based and uses similar switches, plus it has a gui compilation script maker, AND it can send email notifications.

Down side, I think it's 30 bucks, but you can use it on as many computers as you want.

oops, just found it, its a whopping 1 dollar.

https://www.gurusquad.com/Replication/GSCOPY