Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS Batchfile flashing up window 1

Status
Not open for further replies.

robdon

Programmer
May 21, 2001
252
0
0
ES
Hi,

If you call a batch file from the 'Run...' prompt then it pops up the command.com windows qucikly while the batch file is running.

This makes things look at bit bad... can it be stopped?

My batch file just contains:

echo . | time > c:\rob.time

But for some reason when its run, it pops up a black windows quickly.

(using the Run... is just and example, I'm actually using rundll32 url.dll,FileProtocolHandler c:\time.bat really)

Thanks,

Rob D.



ProIV Resource Centre
 
you could create a Visual basic Script, and call the batch file from with there....
pop the following into a text file with the extension .vbs
eg time.vbs

Code:
[b]CreateObject("Wscript.Shell").Run "C:\time.bat", 0, False[/b]

------------------------------------------------------
Matt
He's not the messiah, he's a very naughty boy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top