Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 29th, 2008, 05:26 PM
Registered User
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run a MS DOS Batch file from Excel VBA


Dear all,

I wrote a VBA script that creates a BAT file on the fly in a particular folder on the local machine and subsequently have it to execute. The batch file is created but afterwards nothing happens:D. Could somebody help me to solve the problem. By the way i used:
Shell ("cmd.exe /k call runapplication.bat")

Thanks for your support
Louh

 
Old March 4th, 2008, 10:02 PM
Authorized User
 
Join Date: Nov 2007
Posts: 48
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Louh,

See this link:
http://www.ozgrid.com/forum/showthread.php?t=24408


Have a great day,
Stan

stanleydgromjr

Windows Vista Business and Excel 2003, 2007.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help with DOS batch file .. Arul20 Forum and Wrox.com Feedback 5 August 31st, 2007 06:51 AM
MS Excel - File Links - VBA a_barnsley Excel VBA 1 July 23rd, 2007 10:48 AM
Telnet dos batch file sridharaiyer Need help with your homework? 0 August 25th, 2006 03:38 PM
How to run DOS file commands using vba? alastair Access VBA 2 August 12th, 2006 03:40 AM
Run .bat file from Excel VBA Harold Hawken Excel VBA 2 June 23rd, 2005 03:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.