Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-09-2010, 06:10 PM
NoiCe NoiCe is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: Nov 2008
Posts: 18
NoiCe is on a distinguished road
Default Running Batch File

Hi I really have limited experience with VBA but I am looking for a way to integrate the ability to have access run a Macro and have one of the steps call a .bat file located in a directory that is setup to create a .txt file of that directory's files. The kicker is that the macro needs to wait until the file is completed (CMD window disappears) before moving onto the next steps of the macro. Please see attached sample.
Attached Files
File Type: zip TEST.zip (282.2 KB, 2 views)
Reply With Quote
  #2  
Old 03-11-2010, 03:32 AM
SoftwareMatters SoftwareMatters is offline Windows XP Access 2003 (version 11.0)
Competent Performer
 
Join Date: Mar 2009
Location: Somerset
Posts: 156
SoftwareMatters is on a distinguished road
Default

Instead of calling a .bat file you could just write the code in vb using the File System Object - do a search for fso and see what comes up. Or check out this link: http://allenbrowne.com/ser-59.html - it may be helpful.
Good luck
__________________
Regards
JD

Software matters - Bespoke Access Database Design and Development
Reply With Quote
  #3  
Old 03-21-2010, 05:05 AM
NoiCe NoiCe is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: Nov 2008
Posts: 18
NoiCe is on a distinguished road
Default

SoftwareMatters...this is great!!! Thank you!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
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
Newbie Alert! Help to create Batch Number Vikki Access 1 02-09-2010 09:39 PM
Batch Update to Access Table (random fields and records) cryswater Access 5 01-05-2010 07:22 PM
Open Accesss DB by batch script micada Access 0 06-10-2008 12:33 PM
New Database - Batch processing stevo2820 Database Design 0 04-30-2007 12:22 AM
Shell with Batch Variables robbyaube Programming 0 12-12-2005 06:40 AM


All times are GMT -8. The time now is 08:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.