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

Hello Everyone,

Is there a way I can write in my VBA code a batch file command and then save
it as .bat file??

I would like to enter:

"C:\Program Files\InternetMacros\imacros.exe" -macro CalendarInsert -loop 19
echo Batch file completed

Then I would like to save it as: sample.bat

Thanks.. Michael Vaughan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Writing Batch File


Hi Michael

See how I do it here
http://www.rondebruin.nl/csv.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Michael Vaughan" wrote in message ...
Hello Everyone,

Is there a way I can write in my VBA code a batch file command and then save it as .bat file??

I would like to enter:

"C:\Program Files\InternetMacros\imacros.exe" -macro CalendarInsert -loop 19
echo Batch file completed

Then I would like to save it as: sample.bat

Thanks.. Michael Vaughan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Writing Batch File

Ron de Bruin shows how to create a .bat file to merge .CSV files.

You could modify his code to do what you want:

http://www.rondebruin.nl/csv.htm



Michael Vaughan wrote:

Hello Everyone,

Is there a way I can write in my VBA code a batch file command and then save
it as .bat file??

I would like to enter:

"C:\Program Files\InternetMacros\imacros.exe" -macro CalendarInsert -loop 19
echo Batch file completed

Then I would like to save it as: sample.bat

Thanks.. Michael Vaughan


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Writing Batch File

Thanks Ron and Dave!

I will give it a shot.

Thanks agian,

Michael


Is there a way I can write in my VBA code a batch file command and then
save it as .bat file??

I would like to enter:

"C:\Program Files\InternetMacros\imacros.exe" -macro CalendarInsert -loop
19
echo Batch file completed

Then I would like to save it as: sample.bat

Thanks.. Michael Vaughan



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
batch file camilia Excel Discussion (Misc queries) 0 February 1st 07 01:59 PM
Would Like to Automate Batch File Creation and Text FIle Import socrtwo Excel Discussion (Misc queries) 2 August 18th 06 03:54 PM
Create a batch file from a number of Excel File Vinay[_2_] Excel Programming 0 September 8th 04 01:11 AM
running a batch file Mohan[_2_] Excel Programming 3 April 10th 04 10:48 PM
batch file Andty Excel Programming 1 January 13th 04 05:44 PM


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