This is kinda related to here...
How do you use a BAT file to be able to load a
program and then do something else?
IOW, I've got a bat file that loads Switcher. However, the
bat file won't do anything else until I uninstall Switcher.
Only then does it run the other commands/programs I want
to run. (Whcih is too late!)
Re: BAT Files
How do you use a BAT file to be able to load a
program and then do something else?
that depends on the OS being run...
generally speaking, you'd use some sort of "start" command or utility
to fire up the additional items... however, this means that the OS
must be multitasking already...
IOW, I've got a bat file that loads Switcher. However, the
bat file won't do anything else until I uninstall Switcher.
Only then does it run the other commands/programs I want
to run. (Which is too late!)
if switcher is the "multitasker", then i don't know that you can do
what you are wanting... are you wanting the other items to be started
from within switcher or in addition to switcher? if in addition to,
then the OS is already multitasking and switcher isn't needed, is it?
or am i misunderstanding switcher?
How do you use a BAT file to be able to load a
program and then do something else?
that depends on the OS being run...
It's in DOS under WIN98
generally speaking, you'd use some sort of "start"
command or utility to fire up the additional items...
however, this means that the OS must be multitasking
already...
The program I'm loading works as a TSR. Once it's
loaded, I can run regular programs from the DOS prompt.
IOW, I've got a bat file that loads Switcher. However, the
bat file won't do anything else until I uninstall Switcher.
Only then does it run the other commands/programs I want
to run. (Which is too late!)
if switcher is the "multitasker", then i don't know that
you can do what you are wanting... are you wanting the
other items to be started from within switcher or in
addition to switcher? if in addition to, then the OS is
already multitasking and switcher isn't needed, is it?
or am i misunderstanding switcher?
Switcher does like it sounds. I can run a program and freeze
it on the page I'm in. It then allows me to open a separate
DOS section and run another program. I can do that 7 or 8
times, leaving any of the porgrams on the place I left it.
It's great for cut and paste in DOS mode.
Re: BAT Files
Switcher does like it sounds. I can run a program and freeze
it on the page I'm in. It then allows me to open a separate
DOS section and run another program. I can do that 7 or 8
times, leaving any of the porgrams on the place I left it.
It's great for cut and paste in DOS mode.
i honestly don't see how you can do what you are trying to do unless switcher has some sort of autoexec capability to fire up the other programs you want to run... then again, i fail to see a need for
switcher in the first place since you are running in DOS tasks under Win98... the machine i'm currently on has a dozen or more DOS windows
open as well as i don't know how many windows programs... as i need a
DOS window, i just open another one...
i honestly don't see how you can do what you are trying to do unless switcher has some sort of autoexec capability to fire up the other programs you want
to run... then again, i fail to see a need for switcher in the first
place since you are running in DOS tasks under Win98... the machine
i'm currently
on has a dozen or more DOS windows open as well as i don't know how
many windows programs... as i need a DOS window, i just open another one...
Switcher does like it sounds. I can run a program and freeze
it on the page I'm in. It then allows me to open a separate
DOS section and run another program. I can do that 7 or 8
times, leaving any of the porgrams on the place I left it.
It's great for cut and paste in DOS mode.
i honestly don't see how you can do what you are trying to do unless
switcher has some sort of autoexec capability to fire up the other
programs you want to run... then again, i fail to see a need for
switcher in the first place since you are running in DOS tasks under
Win98... the machine i'm currently on has a dozen or more DOS windows
open as well as i don't know how many windows programs... as i need a
DOS window, i just open another one...
But I don't want to! (Whine!)
I got Switcher long before I got WIN95. I found it a very
easy way way to cut and paste between open DOS "Windows".
I was able to do that on a 286 system.
Yes, I can do that via WIN, but there are far less needed
keystrokes in my current setup.
As it is, I'll live with the fact that I can't chain Switcher
on the startup call to it.
I think that's the point...he's asking about how to do
this in a BAT file so I assume he's not going to be
there to open new windows as he needs them.
I always thought that the 'call' command in batch files
was the way to go. I'm not sure, but I thought that if
you just named a program or bat file from within a bat
file, then the calling bat file would terminate and the
system wouldn't return to it after running whatever
program was called. I thought that the "call
progam_name" would cause the system to execute that
program, then return to the calling bat file and
execute the remainder of the commands.
Re: BAT Files
I think that's the point...he's asking about how to do this in a BAT
file so I assume he's not going to be there to open new windows as he needs them.
I always thought that the 'call' command in batch files was the way to
go. I'm not sure, but I thought that if you just named a program or
bat file from within a bat file, then the calling bat file would terminate and the system wouldn't return to it after running whatever program was called. I thought that the "call progam_name" would cause
the system to execute that program, then return to the calling bat
file and execute the remainder of the commands.
I don't know if that helps, Dan, but it might...
Re: BAT Files
Yes, I can do that via WIN, but there are far less needed
keystrokes in my current setup.
what keystrokes? i click and drag to hilite and then either hit enter
or click again... then switch to whatever task, native win or dos, and depending will either click the paste button in a dos task or hit
CTRL-V in a win task... copy'n'paste to both environs... FWIW: i do
the same, but easier on OS/2, too... there, its just a matter of
button dragging and then double clicking no matter the native task...
IIRC, that even goes into the win3x that runs on OS/2, too OB-)
As it is, I'll live with the fact that I can't chain Switcher
on the startup call to it.
alrighty... sorry 'bout that...
I tried adding [call sw.bat] and it almost worked! I got
a Nesting Error. I think there needs to be a command after
that...
Re: BAT Files
gotta watch for certain things when calling .bats... the main one is
that you don't get into a "call loop"...
ie: a calls b
b calls c
c calls a
round'n'round we go till we nest out or run out of memory
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,034 |
Nodes: | 15 (0 / 15) |
Uptime: | 23:22:13 |
Calls: | 781 |
Calls today: | 6 |
Files: | 95,174 |
D/L today: |
127 files (31,436K bytes) |
Messages: | 299,487 |