good day sir.,

I'm having trouble in creating batch file for my work...
ok, here's the scenario:

i want to create a batch file to COPY a FOLDER to the storage, wherein the FOLDER consists of text files.

i successfully created a batch file where i copied txt.files in the storage. but when i tried to COPY the FOLDER with txt.files in it, it failed.

copy "*.txt" "Z:\TNT\prod\other projects\FEDERAL REGISTER\FIN MOD"
---> it works

copy "fedr023818" "Z:\TNT\prod\other projects\FEDERAL REGISTER\FIN MOD"
---> failed

wherein:
Z:\TNT\prod\other projects\FEDERAL REGISTER\FIN MOD >> is the directory of the storage in network
fedr023818 >> name of the folder in local

Use xcopy or robocopy for a bit more control over the operation:

xcopy /E /O /V /Y "fedr023818" "Z:\TNT\prod\other projects\FEDERAL REGISTER\FIN MOD"
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.