WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Networks - Servers
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Using a BAT File to Launch Subsequent Operations

Keywords: 	 BAT Start /w Start /normal

Question:

I want to create a progam that I can have hidden that I could pop up with a hotkey (or maybe it could reside in the systray).

I tried using WaitForKey() and that works, but If I launch the winbatch program with this function in it (say from a batch file), it suspends the program, and will not execute any further commands in the batch file until it is terminated.

IE:

Contents of Mybatch.bat:
@echo off
myprog1.wbt (one with WaitForKey() function)
myprog2.wbt (someother winbatch program)
I want "myprog1.wbt" to stay in memory and be display only when hotkeyed, but still display myprog2.wbt.

I am using this on a terminal server. We are publishing applications with Citrix metaframe. We used a batch file to load a particular application (doesn't really matter what it is - anything from notepad to an oracle application). What I want to do is launch a little memory resident winbatch program that can be called up and hidden by the user - this little program will have information like what's in a particular registry hive, dirve mappings, printers defined (kind of a snapshot of the terminal server environment).

So the batch file will run this program first, then it will run any number of things after that (drive mappings, other programs, etc.)

Answer:

I recall NT can be set up to run stuff in bat files sequentially (or was that just in a login script) just like as if you did a:
	start /w
or
	start /normal
in front of the command line. If your system is set up that way either you have to change it or figure out some other way of launching the winbatch scripts.
Article ID:   W14379
Filename:   Using a BAT File to Launch Subsequent Operations.txt
File Created: 1999:12:10:15:29:18
Last Updated: 1999:12:10:15:29:18