Consulting

Results 1 to 2 of 2

Thread: Solved: run batchfile?

  1. #1
    VBAX Tutor
    Joined
    Jan 2008
    Posts
    266
    Location

    Solved: run batchfile?

    im trying to run a batchfile from VBA but its as if the file doesnt finnsih.
    i see the black cmdwindow open and writing some text very fast but the batch doesnt run.

    [VBA]
    Sub test6()
    Dim bat As String
    bat = "J:\Documents and Settings\Andreas\Desktop\bat.bat"
    Shell bat

    End Sub

    [/VBA]

    any suggestions?

  2. #2
    VBAX Tutor
    Joined
    Jan 2008
    Posts
    266
    Location
    uhh... found the problem.
    windows was playing tricks with me. it changed my local path to my documents by some reason.

    problem solved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •