any msdos utility that copies and removes files after a few days,etc?.
TIM
--
Sent by 1 from yahoo in area com
This is a spam protected message. Please answer with reference header.
Posted via http://www.usenet-replayer.com/cgi/content/new
Yes, it's called XCOPY. For Batch example showing how to have
XCOPY delete files older than a week without using any third-party
utilities, see our previous post on the subject:
Subject: Re: Delete all files older than one week.
http://groups.google.com/groups?selm=b3ilk0$1mobak$1...@ID-55970.news.dfncis.de
Date: Wed, 26 Feb 2003 15:09
--
William and Linda Allen
Learn to write Batch Files on your Win95/98/ME PC. Free, interactive
Web Course. Syllabus and Index to Lessons: http://www.allenware.com/
Batch Library StudyPacks: http://www.allenware.com/find?BatchLibrary
For up-to-date Batch-related links: http://www.fpschultze.de/bss.htm
>any msdos utility that copies and removes files after a few days,etc?.
My HUNT, via sig line 3 below, can select files by many criteria,
including age, and can cause any COM EXE or BAT to be executed on them.
In particular, parameter /B#-6 means dated before 6 days before the
start of today.
For more closely-controlled timing, use /Byyyy-mm-ddThh:mm:ss ; such a
date/time string can be put in the environment by my NOWMINUS - it can
do complexities such as 65h 33m 22s ago before last Thursday
There is often no need to copy and remove; move can be used, and, if the
file remains on the same drive, physical duplication is not needed.
As of last night, a HUNT parameter 'semicolon' starts comment to end-of-
line.
--
© John Stockton, Surrey, UK. j...@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.
> any msdos utility that copies and removes files after a few days,etc?.
> TIM
*** Use XSET, a SET update. It can copy files before, from, or after any
date. You will then have to set up a delete batch file to delete the same
files copied by XSET. E-mail me for a method to do this all from one
batch file.
An XSET link may be found on my site.
Richard Bonner
http://www.chebucto.ns.ca/~ak621/DOS
> An XSET link may be found on my site.
Eventually. For those with off-line newsreader or pay-by-minute links,
a URL is more helpful. http://xset.tripod.com/index.html
I see that http://xset.tripod.com/latest.htm includes
Version 5.46
bug fix: year 2000 was considered as a leap year
--
© John Stockton, Surrey, UK. j...@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
> I see that http://xset.tripod.com/latest.htm includes
> Version 5.46
> bug fix: year 2000 was considered as a leap year
107130 May 28 2002 ftp://garbo.uwasa.fi/pc/envutil/xset547.zip
xset547.zip Put ANYTHING in environment variable, M.Stern
All the best, Timo
--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
mailto:t...@uwasa.fi <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Useful batch files and tricks ftp://garbo.uwasa.fi/pc/link/tsbat.zip
> > An XSET link may be found on my site.
> Eventually. For those with off-line newsreader or pay-by-minute links,
> a URL is more helpful. http://xset.tripod.com/index.html
*** It is, but I have so many links on so many pages that I don't
remember them all, so just giving my URL is easier. After that, all one
has to do is to use the built-in browser search function to immediately
loacte the word "XSET".
I don't know why more people don't make use of that feature. I use it
whenever I reach any web page for which I am looking for specific
information.
Regardless, thanks for posting the XSET URL, John.
> I see that http://xset.tripod.com/latest.htm includes
> Version 5.46 bug fix:
*** Yes. The latest version is 5.47, which, of course, includes the 5.46
bug fix. It is the one I'm currently using.
> year 2000 was considered as a leap year
> --
> John Stockton
*** Interesting. An easy error to make if one forgets the "divide by
400" rule. (-:
Richard Bonner
http://www.chebucto.ns.ca/~ak621/DOS
>*** Interesting. An easy error to make if one forgets the "divide by
>400" rule. (-:
Assuming that he means what he says, and his English is good but not
perfect, that actually means that the software was correct before, but
not after, the bug fix.
I don't use it. If I want to find something I fire up Google.
>
> Regardless, thanks for posting the XSET URL, John.
>
>
> > I see that http://xset.tripod.com/latest.htm includes
> > Version 5.46 bug fix:
>
> *** Yes. The latest version is 5.47, which, of course, includes the 5.46
> bug fix. It is the one I'm currently using.
>
>
> > year 2000 was considered as a leap year
> > --
> > John Stockton
>
> *** Interesting. An easy error to make if one forgets the "divide by
> 400" rule. (-:
>
>
> Richard Bonner
> http://www.chebucto.ns.ca/~ak621/DOS
Indeed; 2000 *was* a leap year.
-uso.
> >*** Interesting. An easy error to make if one forgets the "divide by
> >400" rule. (-:
> Assuming that he means what he says, and his English is good but not
> perfect, that actually means that the software was correct before, but
> not after, the bug fix.
> --
> John Stockton
*** I don't read it that way. He does use the past tense of "...was
considered a leap year". To me that implies that the new versions does not
consider it a leap year.
Richard Bonner
http://www.chebucto.ns.ca/~ak621/DOS
>
>*** I don't read it that way. He does use the past tense of "...was
>considered a leap year". To me that implies that the new versions does not
>consider it a leap year.
Agreed. It was a leap year here in the UK; and no doubt in Canada too.
TS may well recall that the Leapness of 2000 was much discussed,
invariably with the right conclusion, in news:c.l.p.b during the later
'nineties.
According to "Hugo Goodfellow", "Anno vero MM, more consueto dies
bissextus intercaletur, februario dies XXIX continente, idemque ordo
intermittendi intercalandique bissextum diem in quadringentis quibusque
annis perpetuo conservetur".
References via below.
However, copying from screen,
C:\IMPORTS\XSET>xset xxx diffdate 24/02/2000 24/02/2001
C:\IMPORTS\XSET>echo %xxx%
366
I consider it as an amusing typo in the "whatsnew" document.
>However, copying from screen,
>
> C:\IMPORTS\XSET>xset xxx diffdate 24/02/2000 24/02/2001
>
> C:\IMPORTS\XSET>echo %xxx%
> 366
>
>I consider it as an amusing typo in the "whatsnew" document.
Which he will be fixing.
(Re: Built-in browser search function)
> >
> > I don't know why more people don't make use of that feature. I use it
> > whenever I reach any web page for which I am looking for specific
> > information.
> I don't use it. If I want to find something I fire up Google.
*** As do I, but once I click on a Google link, I then use my browser's
"Search" function to quickly locate a key word within a web page.
Richard Bonner
http://www.chebucto.ns.ca/~ak621/DOS
(Re: Year 2000)
> It was a leap year here in the UK; and no doubt in Canada too.
*** I assume you mistyped and actually mean it was *not* a leap year.
The UK, via Greenwich, is the accepted world standard for the
calendar, despite some other systems in use. So it was not a leap
year in Canada, either.
> I consider it as an amusing typo in the "whatsnew" document.
> --
> John Stockton
*** I often see typos and other odds & ends which amuse me in various
on-screen documents. Most of the humour comes from those for whom english
in not their first language. Then again, I imagine a lot of direct
translations *from* english are pretty funny in other languages.
Richard Bonner
http://www.chebucto.ns.ca/~ak621/DOS
I think not; the standard is the Papal Bull for Roman Catholics, and the
Calendar Act for the Empire and Colonies excluding AU/NZ, which the Act
fails to believe in the possibility of.
> So it was not a leap
>year in Canada, either.
Check your old diaries, or any of the numerous sources on my Leap Year
web page. Or see TSFAQP #91, via sig line 4, "Q: Is 2000 a leap year?
What is the leap year algorithm?" - although the first part is only
answered for those who understand the second's answer.
Or set MSDOS to 2000-02-28 23:59:30, and wait a minute.
--
© John Stockton, Surrey, UK. j...@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.merlyn.demon.co.uk/clpb-faq.txt> RAH Prins : c.l.p.b mFAQ;
<URL:ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ.
*** Oh, Sorry. I goofed, John. Yes, 2000 *was* a leap year. For some
reason, I was thinking the "divide by 400" rule was opposite to what it
is actually.
Richard