Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default VBA code to run & wait for cmd line interface application

I want to get started with the shell command to run my process below under 1
VBA subroutine. I've just started looking at methods to wait for the external
application to complete. Any pointers would be very welcome.
Thanks
Here are the broad steps in my current process:
Excel sub1
get list of external app1 filenames from directory1 according to inputbox
transcribe files in list from .txt1 to .txt2 structure
write command file com.txt for external app2 to run with .txt2 files as input
end sub
Command line
MyBatch.bat
run external app2.exe<com.txt (output is .txt3 files)
exit Batch file
Excel sub2
read & process .txt3 files
update worksheet database
end sub




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default VBA code to run & wait for cmd line interface application

See:

http://www.cpearson.com/excel/ShellAndWait.htm
--
Gary''s Student - gsnu200779


"David" wrote:

I want to get started with the shell command to run my process below under 1
VBA subroutine. I've just started looking at methods to wait for the external
application to complete. Any pointers would be very welcome.
Thanks
Here are the broad steps in my current process:
Excel sub1
get list of external app1 filenames from directory1 according to inputbox
transcribe files in list from .txt1 to .txt2 structure
write command file com.txt for external app2 to run with .txt2 files as input
end sub
Command line
MyBatch.bat
run external app2.exe<com.txt (output is .txt3 files)
exit Batch file
Excel sub2
read & process .txt3 files
update worksheet database
end sub




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
Application wait question Graeme Excel Programming 4 April 12th 08 07:21 PM
Application.wait... won't! Peter Rooney Excel Programming 12 November 17th 06 04:31 AM
Please help with Application.Wait ( ) Steve[_80_] Excel Programming 2 January 6th 06 01:23 PM
Different syntax for Application.Wait Desert Piranha[_19_] Excel Programming 3 December 16th 05 12:13 PM
application.wait help flowtester Excel Programming 10 December 4th 05 03:47 PM


All times are GMT +1. The time now is 06:12 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"