Has someone any ideas?
I am using shell to call PKZip.exe but it doesn't seem to be able to see my location paths... my code =
'creates the location string to create zip file into
LocationZip = frmMain.txtFolder(0).Text & "\" & strTodaysDate & ".zip"
'Takes the values from the location text boxes and joins the
'strings to the two mdb file names...
LocationXtrain = frmMain.txtFolder(0).Text & "\Xtrain.mdb"
LocationUser = frmMain.txtFolder(0).Text & "\User.mdb"
'Sets the properties to zip up the files...
pkz = "C:\Windows\Command\pkzip.exe" 'where the exec is
n = "LocationZip" 'What to call zip and destination
o = "LocationXtrain LocationUser "
CommandLine = pkz & " " & n & " " & o 'Joins these together
'ShellAndWait is a .bas file to wait for the procedure to end
ShellAndWait (CommandLine)
MsgBox "Finished..."
I'm just banging my head against a brick wall... it just can't see the mdb files to compress ;o(
I am using shell to call PKZip.exe but it doesn't seem to be able to see my location paths... my code =
'creates the location string to create zip file into
LocationZip = frmMain.txtFolder(0).Text & "\" & strTodaysDate & ".zip"
'Takes the values from the location text boxes and joins the
'strings to the two mdb file names...
LocationXtrain = frmMain.txtFolder(0).Text & "\Xtrain.mdb"
LocationUser = frmMain.txtFolder(0).Text & "\User.mdb"
'Sets the properties to zip up the files...
pkz = "C:\Windows\Command\pkzip.exe" 'where the exec is
n = "LocationZip" 'What to call zip and destination
o = "LocationXtrain LocationUser "
CommandLine = pkz & " " & n & " " & o 'Joins these together
'ShellAndWait is a .bas file to wait for the procedure to end
ShellAndWait (CommandLine)
MsgBox "Finished..."
I'm just banging my head against a brick wall... it just can't see the mdb files to compress ;o(