I’m having a hard time figuring out how to run a batch file using a macro. I’m using the most recent version of Libreoffice (portable).
This code opens the batch file in notepad as expected.
Dim Path as string, EXE as string
EXE = "C:\Windows\System32\notepad.exe"
Path = """D:\Test.bat"""
Shell(EXE, 1, Path)
This code doesn’t work and I have no idea why. The terminal windows doesn’t even open. I tried putting the full path to cmd after just using “cmd” didn’t work.
Dim Path as string, EXE as string
EXE = "C:\Windows\System32\cmd.exe"
Path = """D:\Test2.bat"""
Shell(EXE, 1, Path)
Help would be appreciated.