In Win98 you can use Quotation marks around the full path to a file and the path is read. I am not sure you can do that in NT4.
Otherwise, use the short file names. The spaces in the name ends the path if your system cannot read long file names. And there is a limit to the number of characters you can use. A quick way to get the path is to open a command prompt. Open the Folder which has the file you want to open. Go to start>Run and type command (or cmd) I am not sure for NT. The full path to that folder will show in the Dos Box.
When creating the Batch, type the path to the exe. I don't think you need Start. If you wanted to open a text file, you would need Start. But not for an exe.
@echo off is a command which prevents the Dos box from showing the commands as they are executed.
C:\Program Files\QSIS_NG\QSISNG.EXE should not be a problem if you use the correct name format to open it.
Also, create a shortcut to the program and have it run minimized and close on exit. To do that right click on the batch and choose properties. Click the Program Tab. Choose Run Minimized and check the Close on exit box. This will create a shortcut icon in the same folder as the batch. You can then move the shortcut to a convenient location. You can change the icon too if you like.
Mosaic1, in w2k I'm unable to get a batch file of this type to work without the "start" at the beginning.
eddie5659, with C:\Program Files\QSIS_NG\QSISNG.EXE, you might try changing the name of the folder QSIS_NG to QSISNG. That's what I had to do with Popup Killer. I had to get rid of the space for it to work. I did it with the folder and the exe file.
That's a good point to know about Start on Win2k. I'll have to try it on XP and see if it is the same. The space is the problem for DOS. If you use the short file name it should work. I doubt Eddie can rename folders and files used by others.
You don't need START proceeding the program name in the batch file for any version of windows. START is used to invoke a separate instance of the command processor, so if you have a batch file:
START dir
START dir
START dir
You'll end up with three command prompt windows open, all with a directory listing in them. This is probably not what most folks want to do.
START is useful if you have several long running processes that you want to run concurrently.
There must be a difference between cmd.exe and command.com
I just ran a simple batch file in XP. I found I did need to use Start in front of each item or the first item ran, but the second didn't until I closed the first. Without the start in front of the item, the next command does not execute until the first has finished. That means I had to close the program I opened before the next line would execute. If you want to open more than one program at a time, use start in NT.
In 98, if I try to run a text file without using Start, I get a bad command error. What I said originally does apply to Win98SE using Command.com. I can list several programs not using start and they all open not waiting for the prior to close. Not so in XP.
I see this is just one more difference between NT and Win9x.
The rule of thumb should be test it and see how it goes on your OS.
johnwill, I'll agree there's probably better ways of doing it than the one I've come up with. However, when I execute that posted batch file I get a single cmd window for a fraction of a second, then the programs begin starting up.
You can't argue with results. If your way works for you, that's all that really matters. Being an old DOS re-tread, I still use batch jobs for a host of tasks, and other than a couple of specific instances where I wanted multiple command prompts running simultaneously, I've never used START.
For the record, CMD.EXE is the NT command shell. OMMAND.COM, as shipped with Windows NT/2K/XP, is merely a "pass through" for 16-bit apps. Interactive features of CMD.EXE and COMMAND.COM differ, but all command lines are actually executed by CMD.EXE.
Still having problems creating this. I open a DOS command window, locate the Dir in which the program is in, and typed it out exactly as its shown, including capitals if needed.
It keeps coming up with, say, C:\Programs cannot be found.
I think this may be a dead issue, but I'll keep trying, and let you know
Now, what happens, is that it opens QSIS first, to the login screen. But, it won't open the rest until you close it. If you close it, Macclesfield starts up, but again, thats it.
That hasn't worked either. I'll try it on another PC at work, as we're changing to Dell pc's running Win2000. But, as its a big site, this will take time. I'll track one down thats been changed, and let you know.
It seems that creating Batch files has been denied. I went to NotePad, and renamed it to test.bat
It remained a notepad icon. I'm thinking that as CIBA (the company I work for) is based in Switzerland, they want everyone's pc the same.
Unless I can change that extension, its a mute subject. However, it is a faster pc and I've dragged some icons to the taskbar, for quick opening.
You can change the extension from a command prompt, even if you can't modify the folder preferences to change it with Windows.
Status
Not open for further replies.
You have insufficient privileges to reply here.
Related Threads
?
?
?
?
?
Tech Support Guy
9.9M posts
860K members
Since 1998
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!