Computing.Net > Forums > Disk Operating System > create a batch file?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

create a batch file?

Reply to Message Icon

Name: speedy
Date: April 22, 2003 at 02:58:09 Pacific
OS: xp
CPU/Ram: 1.2/240
Comment:

Can any body tell me how to make a batch file to create a new subdirectory for backups, and to copy in to it, all the files in the current directory with the suffix '.doc, the directory name for the backups should be supplied through the command line as a parameter ???



Sponsored Link
Ads by Google

Response Number 1
Name: bitbyte
Date: April 22, 2003 at 11:00:37 Pacific
Reply:

@echo off
mkdir %1
copy *.doc %1


0
Reply to Message Icon

Related Posts

See More


DOS 6.22 Networking create file with current ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: create a batch file?

creating a batch file to rename fil www.computing.net/answers/dos/creating-a-batch-file-to-rename-fil/15089.html

Creating a batch file to append to a text file www.computing.net/answers/dos/creating-a-batch-file-to-append-to-a-text-file/3180.html

Going thro' every line in a batch file www.computing.net/answers/dos/going-thro-every-line-in-a-batch-file/5994.html