Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default running two separate commands in same Shell

Hello,

Does anyone know how I could use the Shell command to open a Command Prompt
window and change title (Title Process1) to the window and then proceed to
run a program or batch file. I know how to do each separately but not
together.

I have a series of batch files/commands I want to loop through. By naming
the window I would know where they are in the loop.

Thanks for your assistance in this regard.

Michael D. Newby
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default running two separate commands in same Shell

I think I'd just wait for each to finish:

http://support.microsoft.com/?kbid=214248
XL2000: How to Force Macro Code to Wait for Outside Procedure

or

Here's a link to a nice ShellAndWait function that does that.
http://groups.google.com/groups?thre...%40tkmsftngp03

===
Any chance you could build a new .bat file that does all the work and then just
call that?

GPDynamics wrote:

Hello,

Does anyone know how I could use the Shell command to open a Command Prompt
window and change title (Title Process1) to the window and then proceed to
run a program or batch file. I know how to do each separately but not
together.

I have a series of batch files/commands I want to loop through. By naming
the window I would know where they are in the loop.

Thanks for your assistance in this regard.

Michael D. Newby


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default running two separate commands in same Shell

I do wait and check if process has finished bfore starting another. I just
want to be able to change the title of the Command Prompt windows before each
process starts. That way i know if I on process # x of n processes.



"Dave Peterson" wrote:

I think I'd just wait for each to finish:

http://support.microsoft.com/?kbid=214248
XL2000: How to Force Macro Code to Wait for Outside Procedure

or

Here's a link to a nice ShellAndWait function that does that.
http://groups.google.com/groups?thre...%40tkmsftngp03

===
Any chance you could build a new .bat file that does all the work and then just
call that?

GPDynamics wrote:

Hello,

Does anyone know how I could use the Shell command to open a Command Prompt
window and change title (Title Process1) to the window and then proceed to
run a program or batch file. I know how to do each separately but not
together.

I have a series of batch files/commands I want to loop through. By naming
the window I would know where they are in the loop.

Thanks for your assistance in this regard.

Michael D. Newby


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default running two separate commands in same Shell

Maybe someone will chime in with a solution for you.

For me, I'd just change the statusbar:

application.statusbar = "Now doing step 8 of 18"

(And I think I'd keep the command window minimized or hidden)


GPDynamics wrote:

I do wait and check if process has finished bfore starting another. I just
want to be able to change the title of the Command Prompt windows before each
process starts. That way i know if I on process # x of n processes.

"Dave Peterson" wrote:

I think I'd just wait for each to finish:

http://support.microsoft.com/?kbid=214248
XL2000: How to Force Macro Code to Wait for Outside Procedure

or

Here's a link to a nice ShellAndWait function that does that.
http://groups.google.com/groups?thre...%40tkmsftngp03

===
Any chance you could build a new .bat file that does all the work and then just
call that?

GPDynamics wrote:

Hello,

Does anyone know how I could use the Shell command to open a Command Prompt
window and change title (Title Process1) to the window and then proceed to
run a program or batch file. I know how to do each separately but not
together.

I have a series of batch files/commands I want to loop through. By naming
the window I would know where they are in the loop.

Thanks for your assistance in this regard.

Michael D. Newby


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sequential Shell commands? steve66 Excel Programming 3 May 23rd 05 11:14 PM
running commands from hte shell Ruthless Dog Excel Programming 4 May 17th 05 02:38 PM
List of commands that work with shell? quartz[_2_] Excel Programming 0 February 16th 05 03:05 PM
shell commands K Dales[_2_] Excel Programming 0 January 19th 05 09:21 PM
Simple Shell Commands cogent Excel Programming 4 June 8th 04 10:09 PM


All times are GMT +1. The time now is 01:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"