batch file to copy only todays file

November 1, 2010 at 04:39:30
Specs: Windows 2000
Hi i have created a batch file to run a program and get the output. The output by default gets generated on the same dir as the program, i have created a 2nd batch file to copy that output to a different share location.

I just want to copy only the output txt fie which will be created recently, i dont know hoe to do the same. I use xCopy command from microsoft with option /d[:mm-dd-yyyy] but nothing worked out... Can any one help to optain the same....

See More: batch file to copy only todays file

Report •

November 1, 2010 at 06:46:00
Run this and post the output.

@echo off > newfile & setLocal enableDELAYedeXpansion

for /f "tokens=* delims= " %%a in ('dir/b newfile') do (

Life is too important to be taken seriously.


Report •
Related Solutions

Ask Question