PC Review


Reply
Thread Tools Rate Thread

Re: append yesterday's in txt filenames

 
 
Garry Deane
Guest
Posts: n/a
 
      9th Jul 2003
On Tue, 8 Jul 2003 09:23:32 -0700, "Ketaki" <(E-Mail Removed)>
wrote:

>I have presently written a batchfile as follows:
>
>for /f "tokens=2" %%i in ('date /t') do set thedate=%%i
>rename c:\abc.txt %thedate:~0,2%-%thedate:~3,2%-%
>thedate:~6,4%-abc.txt
>
>This appends today's date into the filename. But how can i
>obtain yesterday's date instead?


Take a look at the following thread for a variety of methods.
http://groups.google.com/groups?q=dd%3D5546+batch.nt

Or you can use Conset (http://home.pe.net/~fpw/freeware/)

Conset /date d-1
echo Yesterday was %date%

Garry

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3.8 filenames if file select box in xp long filenames appeared in Ernie Windows XP Help 0 18th Oct 2008 06:57 AM
What is the easiest way to open a textfile for append or create it for text append? Wolfgang Meister Microsoft C# .NET 3 23rd May 2007 05:15 PM
Changing 8.3 filenames without changing their full Windows filenames J44xm Freeware 15 17th Mar 2006 07:14 PM
Using REN to append characters to a batch of filenames? BillW50 Microsoft Windows 2000 2 22nd Oct 2005 04:03 AM
Re: append yesterday's in txt filenames Jonathan de Boyne Pollard Microsoft Windows 2000 CMD Promt 0 21st Jul 2003 04:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 AM.