Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

msdos question

2 views
Skip to first unread message

u822...@spawnkill.ip-mobilphone.net

unread,
Mar 31, 2003, 1:14:04 PM3/31/03
to
Hello,

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

William Allen

unread,
Mar 31, 2003, 2:35:38 PM3/31/03
to
"tims20032001" wrote in message

> any msdos utility that copies and removes files after a few days,etc?.

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


Dr John Stockton

unread,
Apr 1, 2003, 6:09:49 AM4/1/03
to
JRS: In article <l.1049134444.1233001708@[63.127.215.130]>, seen in
news:alt.msdos.batch, tims20...@yahoo.com <u822...@spawnkill.ip-
mobilphone.net> posted at Mon, 31 Mar 2003 18:14:04 :-

>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.

Richard Bonner

unread,
Apr 28, 2003, 2:08:21 PM4/28/03
to
tims20...@yahoo.com wrote:

> 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

Dr John Stockton

unread,
Apr 29, 2003, 2:00:33 PM4/29/03
to
JRS: In article <b8jqml$8iq$4...@News.Dal.Ca>, seen in
news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
Mon, 28 Apr 2003 18:08:21 :-

> 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.

Timo Salmi

unread,
Apr 29, 2003, 9:07:48 PM4/29/03
to
Dr John Stockton <re...@merlyn.demon.co.uk> wrote:
> news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
> > An XSET link may be found on my site.

> 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

Richard Bonner

unread,
Apr 30, 2003, 7:44:57 AM4/30/03
to
Dr John Stockton wrote:
> JRS: In article <b8jqml$8iq$4...@News.Dal.Ca>, seen in
> news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
> Mon, 28 Apr 2003 18:08:21 :-

> > 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

Dr John Stockton

unread,
Apr 30, 2003, 1:48:47 PM4/30/03
to
JRS: In article <b8ocvp$47l$1...@News.Dal.Ca>, seen in

news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
Wed, 30 Apr 2003 11:44:57 :-

>
>
>> year 2000 was considered as a leap year

>*** 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.

Dosius

unread,
Apr 30, 2003, 7:30:48 PM4/30/03
to
ak...@chebucto.ns.ca (Richard Bonner) wrote in message news:<b8ocvp$47l$1...@News.Dal.Ca>...

> Dr John Stockton wrote:
> > JRS: In article <b8jqml$8iq$4...@News.Dal.Ca>, seen in
> > news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
> > Mon, 28 Apr 2003 18:08:21 :-
>
> > > 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.

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.

Richard Bonner

unread,
May 2, 2003, 2:56:26 PM5/2/03
to
Dr John Stockton wrote:
> JRS: In article <b8ocvp$47l$1...@News.Dal.Ca>, seen in
> news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
> Wed, 30 Apr 2003 11:44:57 :-
> >
> >
> >> year 2000 was considered as a leap year

> >*** 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


Dr John Stockton

unread,
May 3, 2003, 6:54:35 AM5/3/03
to
JRS: In article <b8uf0q$g1c$2...@News.Dal.Ca>, seen in

news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
Fri, 2 May 2003 18:56:26 :-

>Dr John Stockton wrote:
>> JRS: In article <b8ocvp$47l$1...@News.Dal.Ca>, seen in
>> news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
>> Wed, 30 Apr 2003 11:44:57 :-
>> >
>> >> year 2000 was considered as a leap year
>
>> >*** 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 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.

Dr John Stockton

unread,
May 5, 2003, 1:39:29 PM5/5/03
to
JRS: In article <UyMZQtJr$5s+...@merlyn.demon.co.uk>, seen in
news:alt.msdos.batch, Dr John Stockton <sp...@merlyn.demon.co.uk> posted
at Sat, 3 May 2003 11:54:35 :-

>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.

Richard Bonner

unread,
May 6, 2003, 12:41:22 PM5/6/03
to
Dosius wrote:
> ak...@chebucto.ns.ca (Richard Bonner) wrote in message news:<b8ocvp$47l$1...@News.Dal.Ca>...
> > Dr John Stockton wrote:

(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

Richard Bonner

unread,
May 6, 2003, 12:56:40 PM5/6/03
to
Dr John Stockton wrote:
> JRS: In article <b8uf0q$g1c$2...@News.Dal.Ca>, seen in
> news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
> Fri, 2 May 2003 18:56:26 :-
> >Dr John Stockton wrote:

(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


Dr John Stockton

unread,
May 6, 2003, 3:24:34 PM5/6/03
to
JRS: In article <b98pg7$fbi$4...@News.Dal.Ca>, seen in

news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
Tue, 6 May 2003 16:56:40 :-

>Dr John Stockton wrote:
>> JRS: In article <b8uf0q$g1c$2...@News.Dal.Ca>, seen in
>> news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
>> Fri, 2 May 2003 18:56:26 :-
>> >Dr John Stockton wrote:
>
>(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.

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.

Richard Bonner

unread,
May 12, 2003, 8:24:26 AM5/12/03
to
Dr John Stockton wrote:
> JRS: In article <b98pg7$fbi$4...@News.Dal.Ca>, seen in
> news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
> Tue, 6 May 2003 16:56:40 :-
> >Dr John Stockton wrote:
> >> JRS: In article <b8uf0q$g1c$2...@News.Dal.Ca>, seen in
> >> news:alt.msdos.batch, Richard Bonner <ak...@chebucto.ns.ca> posted at
> >> Fri, 2 May 2003 18:56:26 :-
> >> >Dr John Stockton wrote:
> >
> >(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.
> --
> John Stockton

*** 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

0 new messages