question on hiding a DOS window when executing a DOS batch file 
Author Message
 question on hiding a DOS window when executing a DOS batch file

Could anybody tell me how to hide a DOS Window when a DOS batch file is
executed by using shell in Visual Basic ?

Thanks. Have a nice holiday.

Meng Xu



Sat, 10 Jun 2000 03:00:00 GMT  
 question on hiding a DOS window when executing a DOS batch file

I remember using a PIF file to hide a DOS window. But it was a long time
ago so I don't know any details.

hth
Dieter



Quote:
> Could anybody tell me how to hide a DOS Window when a DOS batch file is
> executed by using shell in VISUAL BASIC ?

> Thanks. Have a nice holiday.

> Meng Xu



Sun, 18 Jun 2000 03:00:00 GMT  
 question on hiding a DOS window when executing a DOS batch file

Hello

I wanted to do this for a shortcut on my desktop to clear the
documents menu.  Here's how it's done.

Create a shortcut to the batch file.
Select the shortcut
Press ALT+ENTER
Select all the options you need.  It's almost exatly like PIF Editor
in Win 3.x

Enjoy  :)

Peter Dey
Nemesis



Quote:
>I remember using a PIF file to hide a DOS window. But it was a long time
>ago so I don't know any details.

>hth
>Dieter



>> Could anybody tell me how to hide a DOS Window when a DOS batch file is
>> executed by using shell in VISUAL BASIC ?

>> Thanks. Have a nice holiday.

>> Meng Xu



Mon, 19 Jun 2000 03:00:00 GMT  
 question on hiding a DOS window when executing a DOS batch file

You can clear the documents menu with a call to SHAddToRecentDocs().



Quote:
> Hello

> I wanted to do this for a shortcut on my desktop to clear the
> documents menu.  Here's how it's done.
> (...)



Tue, 20 Jun 2000 03:00:00 GMT  
 question on hiding a DOS window when executing a DOS batch file

But that means that you gotta write a VB program to do the job.  After
compiling, it would be at least 200k.  A batch file would do the job
in maybe 20b!!

Peter Dey
Nemesis

http://www.cheaters-dungeon.home.ml.org/



Quote:
>You can clear the documents menu with a call to SHAddToRecentDocs().



>> Hello

>> I wanted to do this for a shortcut on my desktop to clear the
>> documents menu.  Here's how it's done.
>> (...)



Fri, 23 Jun 2000 03:00:00 GMT  
 question on hiding a DOS window when executing a DOS batch file

Look at SHELL help!!!

Quote:


> > Could anybody tell me how to hide a DOS Window when a DOS batch file is
> > executed by using shell in VISUAL BASIC ?

> > Thanks. Have a nice holiday.

> > Meng Xu



Thu, 29 Jun 2000 03:00:00 GMT  
 question on hiding a DOS window when executing a DOS batch file

If you do that, you would have to create a VB program, then compile
it, making it much bigget than a 3k batch file + a 3k pif file!

Peter
Nemesis

http://cheaters-dungeon.home.ml.org/



Quote:
>You can clear the documents menu with a call to SHAddToRecentDocs().



>> Hello

>> I wanted to do this for a shortcut on my desktop to clear the
>> documents menu.  Here's how it's done.
>> (...)



Sat, 01 Jul 2000 03:00:00 GMT  
 question on hiding a DOS window when executing a DOS batch file


Quote:
>I remember using a PIF file to hide a DOS window. But it was a long time
>ago so I don't know any details.
>hth
>Dieter


>> Could anybody tell me how to hide a DOS Window when a DOS batch file is
>> executed by using shell in VISUAL BASIC ?

>> Thanks. Have a nice holiday.

>> Meng Xu

All you need to do is use the following code wherever it is you need it:

Call Shell(path and executable go here, 6)

The 6 in that code has VB run the window minimized leaving the focus on the
calling app. If you want the window containing the batch file to be minimized
and also have focus, replace the 6 with a 0

Hope this helps.

Shep Pharis

www: http://www.geocities.com/SoHo/8962

Remove the '_' from my email address to validate it.



Sat, 01 Jul 2000 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Help: hiding a DOS window when executing a DOS batch file

2. executing ms-dos batch files

3. Executing MS DOS batch files

4. Executing DOS batch files in VB4/32 bit

5. How to run batch file in DOS window

6. Dos batch file for windows

7. DOS Batch File to Copy Files from an Access Application

8. Bad Command or File name when Shelling DOS Batch File

9. Another SHELL to DOS batch Question

10. API to hide a batch file executing?

11. VBScript to replace DOS Batch that deletes old files

12. How to open my local MS-DOS batch file

 

 
Powered by phpBB® Forum Software