Results 1 to 3 of 3
  1. #1
    NoiCe is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2008
    Posts
    24

    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.

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    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

  3. #3
    NoiCe is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2008
    Posts
    24
    SoftwareMatters...this is great!!! Thank you!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Shell with Batch Variables
    By robbyaube in forum Programming
    Replies: 2
    Last Post: 12-19-2019, 11:06 AM
  2. Replies: 1
    Last Post: 02-10-2010, 12:39 AM
  3. Replies: 5
    Last Post: 01-05-2010, 10:22 PM
  4. Open Accesss DB by batch script
    By micada in forum Access
    Replies: 0
    Last Post: 06-10-2008, 02:33 PM
  5. New Database - Batch processing
    By stevo2820 in forum Database Design
    Replies: 0
    Last Post: 04-30-2007, 02:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums