Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Batch in excel

Hello,
I have what I believe is an easy question. Is there a way from excel'
VB to call batch files? If so, would you please show me how. Thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Batch in excel

You can Shell to the bat file. E.g.,

Shell "H:\test.bat"



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"calculus87 " wrote
in message ...
Hello,
I have what I believe is an easy question. Is there a way from

excel's
VB to call batch files? If so, would you please show me how.

Thanks


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Batch in excel

Interesting,
I am a bit new to this, so let me get this straight. You just cal
this command
Shell "H:\test.bat"

and it will execute the bat file

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Batch in excel

Yes, you can call the Shell method, passing it the name of the
bat file, and it will execute the bat file immediately. Note that
execution will immediate proceed to the line of code following
Shell, without waiting for the bat file to complete.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"calculus87 " wrote
in message ...
Interesting,
I am a bit new to this, so let me get this straight. You just

call
this command
Shell "H:\test.bat"

and it will execute the bat file?


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Batch in excel

This is very interesting. Thank

--
Message posted from http://www.ExcelForum.com

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
Can excel run a batch file? Tom Excel Discussion (Misc queries) 2 June 1st 09 02:46 AM
run batch job from each row - how to insert run batch function per row? Mitchell_Collen via OfficeKB.com Excel Discussion (Misc queries) 5 February 26th 09 07:16 AM
Excel to Run a Batch File?!? carla New Users to Excel 3 January 20th 07 02:32 AM
Excel in batch mode Bura Tino Excel Programming 1 April 23rd 04 08:46 AM
How can I batch print Excel files? HBYardSale Excel Programming 3 December 15th 03 05:24 PM


All times are GMT +1. The time now is 02:45 AM.

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"