LISTSERV mailing list manager LISTSERV 16.0

Help for PM-DOS Archives


PM-DOS Archives

PM-DOS Archives


PM-DOS@LISTSERV.UA.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

PM-DOS Home

PM-DOS Home

PM-DOS  April 1999, Week 1

PM-DOS April 1999, Week 1

Subject:

Re: DOS batch commands

From:

Jan Muszynski <[log in to unmask]>

Reply-To:

Pegasus Mail for Dos Discussion List <[log in to unmask]>, Jan Muszynski <[log in to unmask]>

Date:

Wed, 7 Apr 1999 14:22:44 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (64 lines)

On 7 Apr 99, at 13:34,  Rick
 wrote about DOS batch commands:

> Hi there,
>     I am looking for a DOS batch program or some helpful commands to
> accomplish the following:
>
> I'm using ftp to send zipped files to my NT server.  They will all have
> unique names (a.zip,b.zip,etc...) and all be put in the same directory.
> Once there I would like a batch program to be running looking for them
> to process.
>
> Problems I have had:
> I can't use the command C:\PKUNZIP *.zip to unzip all the files in a
> directory, it doesn't like the "*"
>
> I need to delete these files when I'm done, but I can't use DEL *.zip,
> because new zipped files may have arrived in the directory in while the
> process was running.

Try the following:

2 batch files - 1 called from the other. For purposes of this example
I'll call them BAT1 and BAT2.

BAT1 contains the following:

for %%f in (*.zip) do call BAT2 %%f


BAT2 contains the following:

c:\pkunzip %1
del %1


That's it. This *should* work, but YMMV since I haven't actually
tried this.

Note that you have to use the call statement, otherwise BAT2 will
never return to BAT1, meaning that only the first file found would
get processed. The way the above commands are structured should work
on NT and DOS/Win95. There are also NT enhancements available for a
lot of the commands.

HTH

>
>
> andy help would be greatly appreciated,
> rick
>
>


==============================
   Jan M.        -  mailto:[log in to unmask]

   PGP key mailto:[log in to unmask]
       Fingerprint:397D 093C E802 964E  5316 B90A 93CE 6696

Thought for the day:
    Being on the tightrope is living; everything else is waiting.
            -- Karl 'The Great' Wallenda

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

July 2006, Week 1
October 2005, Week 4
October 2005, Week 3
November 2004, Week 4
November 2004, Week 3
May 2004, Week 1
December 2003, Week 2
October 2003, Week 3
September 2003, Week 4
August 2003, Week 3
April 2003, Week 4
February 2003, Week 4
February 2003, Week 1
January 2003, Week 3
December 2002, Week 3
November 2002, Week 4
November 2002, Week 2
November 2002, Week 1
July 2002, Week 5
May 2002, Week 3
May 2002, Week 1
April 2002, Week 3
March 2002, Week 4
March 2002, Week 3
February 2002, Week 1
January 2002, Week 5
January 2002, Week 4
January 2002, Week 3
January 2002, Week 2
January 2002, Week 1
November 2001, Week 1
October 2001, Week 1
September 2001, Week 5
September 2001, Week 4
September 2001, Week 3
September 2001, Week 1
August 2001, Week 2
July 2001, Week 3
July 2001, Week 2
June 2001, Week 2
June 2001, Week 1
May 2001, Week 5
April 2001, Week 5
April 2001, Week 4
April 2001, Week 2
March 2001, Week 5
March 2001, Week 3
March 2001, Week 2
January 2001, Week 5
January 2001, Week 4
December 2000, Week 5
November 2000, Week 4
October 2000, Week 2
October 2000, Week 1
September 2000, Week 2
September 2000, Week 1
August 2000, Week 2
June 2000, Week 3
May 2000, Week 1
April 2000, Week 5
April 2000, Week 4
March 2000, Week 1
February 2000, Week 3
January 2000, Week 3
November 1999, Week 5
November 1999, Week 2
November 1999, Week 1
October 1999, Week 3
September 1999, Week 3
September 1999, Week 2
September 1999, Week 1
August 1999, Week 5
August 1999, Week 4
August 1999, Week 3
August 1999, Week 2
August 1999, Week 1
July 1999, Week 5
July 1999, Week 4
July 1999, Week 3
July 1999, Week 2
July 1999, Week 1
June 1999, Week 4
June 1999, Week 3
June 1999, Week 2
June 1999, Week 1
May 1999, Week 5
May 1999, Week 4
May 1999, Week 3
May 1999, Week 2
May 1999, Week 1
April 1999, Week 4
April 1999, Week 2
April 1999, Week 1
March 1999, Week 5
March 1999, Week 4
March 1999, Week 3
March 1999, Week 1
February 1999, Week 4
February 1999, Week 2
February 1999, Week 1
January 1999, Week 3
January 1999, Week 2
December 1998, Week 5
December 1998, Week 2
December 1998, Week 1
November 1998, Week 5
November 1998, Week 4
November 1998, Week 3
November 1998, Week 1
October 1998, Week 5
October 1998, Week 4
October 1998, Week 3
September 1998, Week 5
September 1998, Week 4
September 1998, Week 3
September 1998, Week 2
September 1998, Week 1
August 1998, Week 5
August 1998, Week 4
August 1998, Week 3
August 1998, Week 2
August 1998, Week 1
July 1998, Week 5
July 1998, Week 4
July 1998, Week 3
July 1998, Week 2
July 1998, Week 1
June 1998, Week 4
June 1998, Week 3
June 1998, Week 1
May 1998, Week 4
May 1998, Week 3
May 1998, Week 2
May 1998, Week 1
April 1998, Week 5
April 1998, Week 4
April 1998, Week 3
April 1998, Week 2
April 1998, Week 1
March 1998, Week 5
March 1998, Week 4
March 1998, Week 3
March 1998, Week 2
March 1998, Week 1
February 1998, Week 4
February 1998, Week 3
February 1998, Week 2
February 1998, Week 1
January 1998, Week 4
January 1998, Week 3
January 1998, Week 2
January 1998, Week 1
December 1997, Week 5
December 1997, Week 4
December 1997, Week 3
December 1997, Week 1
November 1997, Week 4
November 1997, Week 3
November 1997, Week 2
November 1997, Week 1
October 1997, Week 5
October 1997, Week 4
October 1997, Week 3
October 1997, Week 2
October 1997, Week 1
September 1997, Week 5
September 1997, Week 4
September 1997, Week 3
September 1997, Week 2
September 1997, Week 1
August 1997, Week 4
August 1997, Week 3
August 1997, Week 2
August 1997, Week 1
July 1997, Week 5
July 1997, Week 4
July 1997, Week 3
July 1997, Week 2
July 1997, Week 1
June 1997, Week 4
June 1997, Week 3
June 1997, Week 2
June 1997, Week 1
May 1997, Week 4
May 1997, Week 3
May 1997, Week 2
May 1997, Week 1
April 1997, Week 5
April 1997, Week 4
April 1997, Week 3
April 1997, Week 2
April 1997, Week 1
March 1997, Week 5
March 1997, Week 3
March 1997, Week 2
March 1997, Week 1
February 1997, Week 4
February 1997, Week 3
February 1997, Week 2
February 1997, Week 1
January 1997, Week 5
January 1997, Week 4
January 1997, Week 3
January 1997, Week 2
January 1997, Week 1
December 1996, Week 5
December 1996, Week 3
December 1996, Week 2
November 1996, Week 5
November 1996, Week 4
November 1996, Week 3
November 1996, Week 2
November 1996, Week 1
October 1996, Week 5
October 1996, Week 4
October 1996, Week 3
October 1996, Week 2
October 1996, Week 1
September 1996, Week 5
September 1996, Week 4
September 1996, Week 3
September 1996, Week 2
September 1996, Week 1
August 1996, Week 5
August 1996, Week 4
August 1996, Week 3
August 1996, Week 2
August 1996, Week 1
July 1996, Week 4
July 1996, Week 3
July 1996, Week 2
July 1996, Week 1
June 1996, Week 4
June 1996, Week 3
June 1996, Week 2
June 1996, Week 1
May 1996, Week 4
May 1996, Week 3
May 1996, Week 2
May 1996, Week 1
April 1996, Week 5
April 1996, Week 4
April 1996, Week 3
April 1996, Week 2
March 1996, Week 5
March 1996, Week 4
March 1996, Week 3
March 1996, Week 2
March 1996, Week 1
February 1996, Week 5
February 1996, Week 4
February 1996, Week 3
February 1996, Week 2
February 1996, Week 1
January 1996, Week 5
January 1996, Week 4
January 1996, Week 3
January 1996, Week 2
January 1996, Week 1
December 1995, Week 5
December 1995, Week 4
December 1995, Week 3
December 1995, Week 2
December 1995, Week 1
November 1995, Week 5
November 1995, Week 4
November 1995, Week 3
November 1995, Week 2
November 1995, Week 1
October 1995, Week 3
October 1995, Week 2
October 1995, Week 1
September 1995, Week 5
September 1995, Week 4

ATOM RSS1 RSS2



LISTSERV.UA.EDU

CataList Email List Search Powered by the LISTSERV Email List Manager