Re: command line 'set /p' problem

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: David Candy (david_at_mvps.org)
Date: 09/01/04


Date: Thu, 2 Sep 2004 03:21:04 +1000

If you want dos 5's help in NT type

command /k set /?

if you want NT's help

set /?

but command /k set is the only way to run a Dos command in NT. But this starts an instance of Dos, sets the environmental variable and then exits, loosing the variable.

Dos 5 and 7 is close but not identical. Closer than 5 and cmd.

-- 
----------------------------------------------------------
http://www.newmatilda.com/home/default.asp
"David Candy" <david@mvps.org> wrote in message news:uVpBGbEkEHA.3872@TK2MSFTNGP11.phx.gbl...
XP Dos boot disk uses Windows Millenium's dos. It supports choice. Choice is an external command. It was in the supplementry tools for Dos 6.22 (and in the main setup), and included with all versions of Dos 7 (Win 95 to Win ME). Command in NT doesn't support set /p as it is Dos 5 (which I think is when choice became an optional tool). CMD supports set /p.
You can type ver to see your version. You'll have to find choice.  ftp://ftp.microsoft.com/Softlib/MSLFILES/sup622.exe is one place where it is.
-- 
----------------------------------------------------------
http://www.newmatilda.com/home/default.asp
"Simon Watkinson" <SimonWatkinson@discussions.microsoft.com> wrote in message news:1E8160A5-BB7A-4C90-9A10-7164014D8867@microsoft.com...
> Sorry I didn't want to expand too much and confuse in the first instance.
> I am trying to boot 'xp' from a floppy with the express purpose of using 
> norton ghost with comand line instructions to enable my family to part 
> restore a computer whilst I am away (easy for me but not them).
> 
> I created a batch file to guide them throught a cuple of simple choices. The 
> batch file uses 'set' with  the /p switch to collect input from the keyboard. 
> All works well during test (running xp) but when the pc is booted from the 
> floppy the version of command.com does not support the '/p' switch. Equally 
> the floppy version of command.co does not support 'choice'. for some reason 
> it falls part way between  win98 and xp. The boot disk was created using 
> ghost, but I have also make a 98 boot disk and an xp boot disk with the same 
> results.
> 
> Ant thoughts.
> 
> "David Candy" wrote:
> 
> > What floppy? All dos floppies support choice. It probably isn't installed. What's a normal command.com. Only programs executing dos commands can call Dos commands. In all other cases NT commands are used.
> > 
> > -- 
> > ----------------------------------------------------------
> > http://www.newmatilda.com/home/default.asp
> > "Simon Watkinson" <SimonWatkinson@discussions.microsoft.com> wrote in message news:E637A9EB-BD27-4EE0-B93C-84A448CDBD7B@microsoft.com...
> > > It seems that the command.com used to boot xp from a floppy is different to 
> > > the normal and does not support the '/p' switch. Nor the old choice command.
> > > Anyone got any ideas for a workround.
> >


Relevant Pages

  • Re: DOS / XP bat file programming question
    ... How do I feed a "y" response to a DOS command that wants to prompt me ... Note that DOS is an operating system, same as Windows XP. ... There is no DOS under Windows, only a Command Prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: Master Boot Record
    ... Is the DOS program relating to the commands which you mentioned in your ... > If you don't know why you'd want to restore or backup a boot sector then don't do it. ... It also contains the partition table. ... The LOCK command enables direct disk access by programs ...
    (microsoft.public.windowsxp.general)
  • Re: newbie: I/O with nasm
    ... A program that starts with "main" and is linked with gcc has the "_start" label in the C startup code, and the stack is slightly different when we get control at "main". ... Dos is *very* different, as you point out. ... Working on up the (Linux) stack, the list of command line argument pointers is terminated with a zero. ...
    (alt.lang.asm)
  • Re: "Read-only" Folders
    ... "Dos attrib command" - that's why. ... anti-Windows folks tell me that Windows is ...
    (microsoft.public.windowsxp.security_admin)
  • Re: reply
    ... neither the listed name or command line ... > folder temporarily by using attrib.exe: ... > In DOS (you may have to restart into DOS to lock this ... > that the trojan is suspected of running at WinME ...
    (microsoft.public.security.virus)