Hi,
I have the following code I found on the internet that would work great if the batch file I needed to run was located on my local computer. The windows batch file I need to run is located on a server that I have created a map for (E drive). How can I get the following code to work on the mapped drive of E?
Note:
When I log onto the F9 server via a VNC viewer connection, the file path is:
C:F9V5pro50_pIFMUpdate.bat
Any help is always appreciated!
Thank you!
Lana
Sub Run_Batch_File()
Dim Update As Double
ChDir “E:”
Update = Shell(“cmd /k E:IFMUpdate.bat“, vbNormalFocus)
End Sub