Re: Batch File Problem



"Don Phillipson" <d.phillipsonSPAMBLOCK@xxxxxxxxxx> wrote:

"Tony P." <noone@xxxxxxxxxxxxxxxxx> wrote in message
news:Osr25e6GIHA.4592@xxxxxxxxxxxxxxxxxxxxxxx

The batch file works ok but it leaves a blank command (DOS)window on
the screen. The only thing in the command window is a flashing cursor. I
would like close this window using the batch file after the file executes.

You cannot . . .
1. Opening and closing windows is a Windows function.
2. BATch files execute DOS functions in a DOS window.
3. Windows functions cannot be executed in a DOS
environment.

But there's no DOS in WinXP. A command console is a 32-bit
environment, and apps that run in this environment can do anything
that a GUI Windows app can do. They can start other apps, they can
show windows themself, they can send messages to GUI applications.

BTW, The "DOS Box" in Win9x was also a 32-bit environment. Command
line apps there could do these things too.

Both environments have the ability to run 16-bit code also.

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@xxxxxxx
http://members.cox.net/slatteryt
.



Relevant Pages

  • Re: Linux syscalls
    ... > A device driver or a rewrite of DOS could permit this, ... really "DOS inside Windows" or "Windows inside DOS"? ... > DOS interrupts are revectored... ... if you re-write DOS to use the _Windows device drivers_ ...
    (alt.lang.asm)
  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)
  • Re: Gamma Function
    ... the destructive Windows critter-makers who are ... Windows runs DOS programs ... DOS isn't a multi-tasking operating system. ... The virus itself is but a code fragment that attaches ...
    (sci.physics.relativity)
  • Re: MS and security: good effort but no cigar
    ... And last but not least, no fat, no dos, no multiboot. ... build upon the progress it's already made in security. ... a Windows system, it is still surprisingly easy to completely own that ... Then there's the issue of poorly secured server applications. ...
    (microsoft.public.windowsxp.general)
  • Re: assembly language and reverse engineering
    ... in Windows assembly programming what you can't learn when doing ... Windows API but about assembly programming). ... And you have far less to learn to get your first working DOS program than ... but, real mode is real mode, and pmode is pmode. ...
    (alt.lang.asm)