M
Mark
Perhaps there's not a way to do this, but I thought I'd post once more ...
I'm looking for a way to programmatically close a DOS window after shelling
out to Pkzip (DOS ver.). This is on a local machine, Win98, Access97, but
I'll also want to do it on a local WinXP, Access2002 machine.
After Pkzip finishes processing, I'm not actually at a command prompt, so
sending "exit" doesn't close the window. Alt-F4 does close it. Do I use
"SendKeys"? If so, could someone please help me with the syntax? Also, I'm
concerned about the timing -- allowing Pkzip to finish processing before
attempting to close the DOS window.
What I have thus far is:
Private Sub Command55_Click()
Dim zipname, cmdstring, foo
zipname = "fpsdata" & ".zip"
cmdstring = "C:\pkzip\pkzip -xc:\access97 a:\" & zipname _
& " c:\access97\fpsdata.mdb"
DoCmd.Close
foo = Shell(cmdstring, 1)
End Sub
p.s. What is the purpose of "DoCmd.Close" in this procedure?
Thank you.
Mark.
I'm looking for a way to programmatically close a DOS window after shelling
out to Pkzip (DOS ver.). This is on a local machine, Win98, Access97, but
I'll also want to do it on a local WinXP, Access2002 machine.
After Pkzip finishes processing, I'm not actually at a command prompt, so
sending "exit" doesn't close the window. Alt-F4 does close it. Do I use
"SendKeys"? If so, could someone please help me with the syntax? Also, I'm
concerned about the timing -- allowing Pkzip to finish processing before
attempting to close the DOS window.
What I have thus far is:
Private Sub Command55_Click()
Dim zipname, cmdstring, foo
zipname = "fpsdata" & ".zip"
cmdstring = "C:\pkzip\pkzip -xc:\access97 a:\" & zipname _
& " c:\access97\fpsdata.mdb"
DoCmd.Close
foo = Shell(cmdstring, 1)
End Sub
p.s. What is the purpose of "DoCmd.Close" in this procedure?
Thank you.
Mark.