Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
batch file to find and copy
Name: David04 Date: January 20, 2004 at 21:11:39 Pacific OS: xp CPU/Ram: 2.54Ghz 512Mb
Comment:
Hi,
I currently have a batch file thats creates a new directory with the current date as its name (in the format YYYYMMDD). Is it possible to have another batch file that finds this directory and copies files to it?
Name: dtech10 Date: January 21, 2004 at 14:21:20 Pacific
Reply:
Hi I take it your using the american date format ie. MM/DD/YYYY. If so will this help.
@echo off set XDate=:~7,4%%date:~0,2%%date:~3,2% rem Xdate should equal YYYYMMDD.
rem 2nd batch file o0r same batch file copy *.* %XDate% rem or path to XDate directory.
------------------ You could use the above to create the directory md %XDate%
0
Response Number 2
Name: lenin Date: February 2, 2004 at 23:41:47 Pacific
Reply:
Hi,
I need to write a bacth file to backup the processed file to a backup directory. Backup file name should include the current date at the end. I am facing problem in formatting the date, since the windows doesn't allow back-slash(/) as part of the file name.
Summary: Hi! I need a batch file to start and stop some specifig service. The service could be in example messenger. I have now tried to make it with the guide of http://www.ss64.com/nt/sc.html which guides me...
Summary: Hello, I am new at this and I have to create a batch file to find a set of filenames with all the path like C:\Users\pc\Documents\ok.txt, etc. The batch file must say if they exist or not. It seems t...
Summary: So I have an odd problem, and a less than easy way of doing it. Our organization has some house keeping that needs to be done, and I would like to use a batch file to aquire ip adress, hostname and dn...