Access 2003 Problem
Ok, this is my first time tinkering with VBA. What I have is a method that does some stuff and then when it is done, I want it to run a .bat file that simply runs a python program. I spent hours trying to get the Shell command to run it, but it would just keep flashing the command prompt. At one point when I was using some combination of Call Shell I got the command prompt to open and stay open, but it wasn't anywhere near the path I type in. To make sure I was doing things right, I had it open notepad.exe. Worked like a charm. What am I supposed to do? I've tried
call Shell ( Environ$ ( "COMSPEC" ) & " /c c:\directory\test.bat", vbNormalFocus)
and also the basic Shell ("c:\directory\test.bat",vbNormalFocus)
My access db is in C:\directory
My .bat file is in C:\directory
My python program is in C:\directory
from what I read, paths shouldn't even be a problem since all my stuff is in the same directory. I have tried both absolute paths and relative, both just flash the cmd prompt. Any advice is greatly appreciated. Thanks
Ok, this is my first time tinkering with VBA. What I have is a method that does some stuff and then when it is done, I want it to run a .bat file that simply runs a python program. I spent hours trying to get the Shell command to run it, but it would just keep flashing the command prompt. At one point when I was using some combination of Call Shell I got the command prompt to open and stay open, but it wasn't anywhere near the path I type in. To make sure I was doing things right, I had it open notepad.exe. Worked like a charm. What am I supposed to do? I've tried
call Shell ( Environ$ ( "COMSPEC" ) & " /c c:\directory\test.bat", vbNormalFocus)
and also the basic Shell ("c:\directory\test.bat",vbNormalFocus)
My access db is in C:\directory
My .bat file is in C:\directory
My python program is in C:\directory
from what I read, paths shouldn't even be a problem since all my stuff is in the same directory. I have tried both absolute paths and relative, both just flash the cmd prompt. Any advice is greatly appreciated. Thanks