PDA

View Full Version : Solved: run batchfile?



Ago
12-25-2008, 07:36 AM
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.


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

End Sub



any suggestions?

Ago
12-25-2008, 08:59 AM
uhh... found the problem.
windows was playing tricks with me. it changed my local path to my documents by some reason.

problem solved.