WANTED - DOS Copy replacement that allows wildcards to specific name

  • Thread starter Thread starter Mark Worden
  • Start date Start date
M

Mark Worden

Hey guys, me again...

I'm also looking for a freeware replacement for the DOS Copy command, which
will allow copying of a filename with a wildcard, to a specific name.

Here's my situation...daily I have a file such as MyFile-TheTitle.txt that I
download from the Internet on a daily basis. The 'MyFile-' and '.txt' are
consistent, but 'TheTitle' could be anything, and I want to use a Copy
command that will take this file once I've downloaded it, and name it to the
same thing each day. Something like this...

Copy C:\MyDownloads\MyFile-*.txt D:\MyWorkFiles\MyFile.txt

This needs to be a copy, because the original file (MyFile-TheTitle.txt)
serves as a backup, while the copy that is created becomes the working file.

The Copy command would need to allow overwriting of the file if it already
exists, and overwrite without asking the user each time.

Please e-mail me with your response (in addition to posting here for others'
benefit).

Thanks for any help,
Mark
 
Hey guys, me again...

I'm also looking for a freeware replacement for the DOS Copy command, which
will allow copying of a filename with a wildcard, to a specific name.

Here's my situation...daily I have a file such as MyFile-TheTitle.txt that I
download from the Internet on a daily basis. The 'MyFile-' and '.txt' are
consistent, but 'TheTitle' could be anything, and I want to use a Copy
command that will take this file once I've downloaded it, and name it to the
same thing each day. Something like this...

Copy C:\MyDownloads\MyFile-*.txt D:\MyWorkFiles\MyFile.txt

This needs to be a copy, because the original file (MyFile-TheTitle.txt)
serves as a backup, while the copy that is created becomes the working file.

The Copy command would need to allow overwriting of the file if it already
exists, and overwrite without asking the user each time.

Write a batch file:

@echo off
copy c:\mydown~1\*.txt c:\backup
rename c:\mydown~1\*.txt myfile.txt
erase d:\mywork~1\*.txt
copy c:\mydown~1\myfile.txt d:\mywork~1
cls
echo *************** FINISHED BATCH JOB ***********
Please e-mail me with your response (in addition to posting here for others'
benefit).
Why?

Thanks for any help,

You're welcome.


Art
http://home.epix.net/~artnpeg
 
Hey guys, me again...

I'm also looking for a freeware replacement for the DOS Copy
command, which will allow copying of a filename with a wildcard,
to a specific name.

Here's my situation...daily I have a file such as
MyFile-TheTitle.txt that I download from the Internet on a daily
basis. The 'MyFile-' and '.txt' are consistent, but 'TheTitle'
could be anything, and I want to use a Copy command that will
take this file once I've downloaded it, and name it to the same
thing each day. Something like this...

Copy C:\MyDownloads\MyFile-*.txt D:\MyWorkFiles\MyFile.txt

This needs to be a copy, because the original file
(MyFile-TheTitle.txt) serves as a backup, while the copy that is
created becomes the working file.

The Copy command would need to allow overwriting of the file if
it already exists, and overwrite without asking the user each
time.

Please e-mail me with your response (in addition to posting here
for others' benefit).

Thanks for any help,
Mark


4DOS is now freeware. http://jpsoft.com/

Harry
 
Back
Top