MS-DOS Batch File Commands

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

MS-DOS Batch File Commands

Post by johnaaronrose »

I'm trying to get the AndroidSDK going under Wine. There are problems
with the MS-DOS commands (for example, the /D option with the 'For'
command and the use of options to apply to the Path environment varaible
(to prevent space being used as a delimiter between path folders) it
uses in the supplied batch files it calls from a supplied .exe file.

I presume that the cmd.exe (in Wine's Windows32) folder is the program
used to run MS-DOS batch files. Could anyone point me to a definitive list
of commands and their parameters that Wine's MS-DOS uses & which work for batch files?
Frédéric Delanoy

MS-DOS Batch File Commands

Post by Frédéric Delanoy »

On Wed, Dec 21, 2011 at 18:22, johnaaronrose <[email protected]> wrote:
I'm trying to get the AndroidSDK going under Wine. There are problems
with the MS-DOS commands (for example, the /D option with the 'For'
command and the use of options to apply to the Path environment varaible
'for' support is incomplete/buggy in current wine
I presume that the cmd.exe (in Wine's Windows32) folder is the program
used to run MS-DOS batch files. Could anyone point me to a definitive list
of commands and their parameters that Wine's MS-DOS uses & which work for batch files?
You can run 'wine cmd' then 'help' or 'help <command>' to see a list
of commands. The documentation may be lacking, though.

For a list of builtin commands supported, you'd have to look at the
source, e.g. from
http://source.winehq.org/git/wine.git/t ... ograms/cmd
(and run the cmd test suite).

You can find the current bug list for component 'cmd' with
http://bugs.winehq.org/buglist.cgi?quer ... ponent=cmd
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: MS-DOS Batch File Commands

Post by vitamin »

johnaaronrose wrote:There are problems with the MS-DOS commands
Firs of all THEY ARE NOT ms-dos commands! DOS never had "for" command, it's a Windows addition.

What you are talking about HAS NOTHING TO DO with ms-dos. That "black screen" is a console (poor MS' implementation of real *NIX terminal). And commands are "batch commands". In *NIX word they are called shell command or shell scripting.

Anyway, Wine's cmd (the program that interprets those commands) is incomplete, as prior user said. File bug.
perryh

MS-DOS Batch File Commands

Post by perryh »

"vitamin" <[email protected]> wrote:
DOS never had "for" command, it's a Windows addition.
Baloney. DOS 6 definitely had a for command. It may not have
been in DOS 2, and may even have been added somewhere in the
DOS 3.x or later timeframe for the sake of Windows 2.x or 3.x,
but I used it in MS-DOS prior to the release of Windows 95.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: MS-DOS Batch File Commands

Post by vitamin »

perryh wrote:Baloney. DOS 6 definitely had a for command.
You right, it's been there for a long time. It's been a while since I used DOS...
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

I think the Android SDK uses features of the for command that
were not present in DOS, so you're both right.
Locked