Subject: Need to hide a console window.

S

Steve MC

I am running Win XP Pro SP2 v2002 on
Dell Optiplex 745, 2GHz DCoreProc, 2GB RAM

I have a Windows NT Command Script (startWebLogic.cmd / CMD File) which I
have to have running in order to access certain web pages on my pc running
through Weblogic. The target in the shortcut is currently,

%SystemRoot%\system32\cmd.exe /k"c:\...\startWebLogic.cmd"

The CMD file opens in a standard windows console and remails open, closing
the window terminates the application meaning I can not access the web pages.

There is no need for me to ever not have this application open or view
anything displayed in the window.

I would like to add this file to the startup folder and have it run in the
background and NOT display a window. This is a corporate PC therefore I am
unable to install any non-windows applications to do this.
 
S

Steve MC

That's done it ... many thanks

Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "cmd /K CD C:\ & Dir>test.txt", 0, false
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top