NewOrderFac33
Well-known Member
- Joined
- Sep 26, 2011
- Messages
- 1,283
- Office Version
- 2016
- 2010
- Platform
- Windows
Good afternoon,
I have a VBA procedure that runs a batch file which in turn creates a zip file:
ZipMe.bat contains the line
Is it possible to run this command from within the procedure without having to invoke the batch file?
I've given it a go, but I'm getting a bit mixed up with where the quadruple quote marks need to go.
As usual, thanks in advance.
Pete
I have a VBA procedure that runs a batch file which in turn creates a zip file:
Code:
Sub RunDOSBatch()
Dim Param As String
Dim RetVal
Param = "C:\PetesStuff\ZipMe.bat"
RetVal = Shell(Param)
End Sub
Code:
"C:\Program Files (x86)\7-Zip\7z.exe" a "c:\PetesStuff\MyZip" "C:\PetesStuff\01 Backup\01 Petes Useful Stuff\*.*"
I've given it a go, but I'm getting a bit mixed up with where the quadruple quote marks need to go.
As usual, thanks in advance.
Pete