PDA

View Full Version : Black Window



vipin
12-05-2001, 10:54 AM
Hello Everyone,
I am running some application on Metaframe Server, which are looking for C drive for security reason.
But in our Citrix Metaframe setup, as recomended by Citrix to Remap drive letters, we dont have C drive instead C drive is remaped to M.
To Execute these applications i had written a Batch file which is disconnecting the Local C drive use Net Use command and then i am using SUBST command to map my M drive as C and then within that Batch File i am executing that appliaction.
Everything works very fine but as soon as i launch that batch file it opens a Black window in the background and then launches that application.
I just wanted to know, is there is anway in Windows Scripting or VB that we can execute these DOS command and hide that BLACK Window.

thanks in advance
regards
Vipin

darkness
12-05-2001, 07:46 PM
Instead of doing it with a batch file use a .vbs file. The Batch file as far as I know doesn't allow a silent mode of operation. You could do the map commands and everything through VBScript and then execute the application when your done. This is about the only option I can think of off hand other than do bat to Exe to convert your batch file to an EXE file and execute it like a program. Either way those are about your only two options as I see it, Maybe someone else has a good idea.

Hope this gives you a little direction.

Michael McLaughlin/images/forums/icons/smile.gif
Systems Manager
Minnesota State University Mankato