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

I have two requirements i'm not sure how to handle.

The first is that I need to delete all files in a
directory. I want to tell Excel the path and delete *.*
in that directory.

The second is that I need to call an external
application. It is a basic .bat file, but I amunsure how
to call it from VB.

Thanks

Kevin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Interacting outside Excel

kill "C:\Myfolder\*.*"

look in help at the shell command (vba help)

--
Regards,
Tom Ogilvy


"Kevin" wrote in message
...
I have two requirements i'm not sure how to handle.

The first is that I need to delete all files in a
directory. I want to tell Excel the path and delete *.*
in that directory.

The second is that I need to call an external
application. It is a basic .bat file, but I amunsure how
to call it from VB.

Thanks

Kevin



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
Interacting with 2 different excel files Trups Excel Discussion (Misc queries) 0 August 9th 07 04:52 AM
Problem interacting between VB.NET and VBA6 with Excel 2003 Nicholas Dreyer Excel Discussion (Misc queries) 0 April 6th 07 04:07 AM
Interacting with Explorer Tom Ridd Excel Programming 1 January 6th 04 03:33 PM


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