PDA

View Full Version : Re: Converting DOS batch files for XP


guard
December 6th 03, 02:11 PM
"Richard N. Simonsen" wrote
> Is there any suggestions for converting batch files used with previous
> versions of windows so they will work with XP? What do you use with XP
> to accomplish the same function?
> I have a number of applications using batch files and QBASIC that I
> need. Some commands just arn't there for example DELTREE.
> Is there any recommended solutions or substitutions for the function?
> Is there another news group or links to sites that would help?
> Thanks for you help
> Richard
>

The builtin RD (Remove Directory) command will do what you need.

Use the /S (subdirectories) switch

RD /S [drive:]path

*******

For more information and a comparison of this command
under NT, 2K, XP and K3, see the "RD Page" at
(http://TheSystemGuard.com/TheGuardBook/CCS-Int/RD.htm)

*******

You will also want to take a look at TheGuardBook,
Online Reference for Cross-Platform Shell Scripting at
(http://TheSystemGuard.com/TheGuardBook/CCS-Int).

All the commands internal to cmd.exe are documented
here in "Mounted Help" pages. This includes a
color-keyed page highlighting the differences
among all internal commands in NT/2K/XP/K3. The
"Common Help" from each OS's help screen is also
available for comparison.

*******

-tsg
__________________________________________________ __________
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!

Al Dunbar
December 6th 03, 02:11 PM
"guard" > wrote in message
...
> "Richard N. Simonsen" wrote
> > Is there any suggestions for converting batch files used with previous
> > versions of windows so they will work with XP? What do you use with XP
> > to accomplish the same function?
> > I have a number of applications using batch files and QBASIC that I
> > need. Some commands just arn't there for example DELTREE.
> > Is there any recommended solutions or substitutions for the function?
> > Is there another news group or links to sites that would help?
> > Thanks for you help
> > Richard
> >
>
> The builtin RD (Remove Directory) command will do what you need.
>
> Use the /S (subdirectories) switch
>
> RD /S [drive:]path
>
> *******
>
> For more information and a comparison of this command
> under NT, 2K, XP and K3, see the "RD Page" at
> (http://TheSystemGuard.com/TheGuardBook/CCS-Int/RD.htm)
>
> *******
>
> You will also want to take a look at TheGuardBook,
> Online Reference for Cross-Platform Shell Scripting at
> (http://TheSystemGuard.com/TheGuardBook/CCS-Int).

A nice post to this point. But I could find little in the way of
cross-platform shell scripting at the above link. Also, not knowing what
windows version the OP is converting from means it could be one of the
earlier ones with which ntlib is incompatible.

/Al


> All the commands internal to cmd.exe are documented
> here in "Mounted Help" pages. This includes a
> color-keyed page highlighting the differences
> among all internal commands in NT/2K/XP/K3. The
> "Common Help" from each OS's help screen is also
> available for comparison.
>
> *******
>
> -tsg
> __________________________________________________ __________
> TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
> Free and "Almost Free" Knowledge for Windows System Admins!
>
>

Al Dunbar
December 6th 03, 02:11 PM
Also, there you go again adding groups unnecessarily, possibly spamming them
as a result (you have been complained to about this already). The OP posted
in alt.msdos.batch.nt only, and is far more likely to find your post there
than in the others you added.

/Al

"guard" > wrote in message
...
> "Richard N. Simonsen" wrote
> > Is there any suggestions for converting batch files used with previous
> > versions of windows so they will work with XP? What do you use with XP
> > to accomplish the same function?
> > I have a number of applications using batch files and QBASIC that I
> > need. Some commands just arn't there for example DELTREE.
> > Is there any recommended solutions or substitutions for the function?
> > Is there another news group or links to sites that would help?
> > Thanks for you help
> > Richard
> >
>
> The builtin RD (Remove Directory) command will do what you need.
>
> Use the /S (subdirectories) switch
>
> RD /S [drive:]path
>
> *******
>
> For more information and a comparison of this command
> under NT, 2K, XP and K3, see the "RD Page" at
> (http://TheSystemGuard.com/TheGuardBook/CCS-Int/RD.htm)
>
> *******
>
> You will also want to take a look at TheGuardBook,
> Online Reference for Cross-Platform Shell Scripting at
> (http://TheSystemGuard.com/TheGuardBook/CCS-Int).
>
> All the commands internal to cmd.exe are documented
> here in "Mounted Help" pages. This includes a
> color-keyed page highlighting the differences
> among all internal commands in NT/2K/XP/K3. The
> "Common Help" from each OS's help screen is also
> available for comparison.
>
> *******
>
> -tsg
> __________________________________________________ __________
> TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
> Free and "Almost Free" Knowledge for Windows System Admins!
>
>

Google