Results 1 to 2 of 2
  1. #1
    dsk96m is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    13

    VBA and command line

    I am trying to run a powershell file from command line. What i need to do in command line is

    cd D:\Scripts\WTV-MetaRenamer\
    powershell -command "& 'D:\Scripts\WTV-MetaRenamer\wtv-metarenamer.ps1' "

    I can figure out how to get this done in vba. I have search everything and tried shell and stuff, but I cant figure out how to run one line then the next



    Please help

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    if you need to run MORE than one line, you have to shell a .bat file.

    You can run one line at a time through basic using environment variables, but that's all I believe.

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

Similar Threads

  1. Replies: 7
    Last Post: 04-11-2011, 03:58 PM
  2. How to do line by line compare of VB code?
    By Buakaw in forum Access
    Replies: 2
    Last Post: 02-14-2011, 11:46 PM
  3. Replies: 5
    Last Post: 12-06-2010, 10:15 AM
  4. Replies: 2
    Last Post: 10-11-2010, 03:15 AM
  5. Pass command line parameters
    By lanto3000 in forum Access
    Replies: 2
    Last Post: 03-21-2010, 03:53 PM

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