Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / March 2005

Tip: Looking for answers? Try searching our database.

Shell command gets into an infinite loop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Margaret Bartley - 09 Mar 2005 13:48 GMT
I'm using Terry Kreft's Shell Wait code from the mvps
website to use an old MS-DOS program, PKZip, to zip some
files.  The command I am passing works in the Command
window.

This is Access97 on Win98.

When I call the Shell function:
   lRetVal = Shell("c:\pkzip\pkzip.exe c:\junk\test1
c:\junk\test.txt", vbHide)
I notice that WinOldAp is still running in the background
(ctl+alt+del), even after I've shut down Access.

When I call ShellWait
   ShellWait "c:\pkzip\pkzip.exe c:\junk\test
c:\junk\test.txt", vbHide
It goes into an infinite loop that I can't break out of,
except to turn off my machine.  WinOldApp is running in the
background.

I'd like to know more about the Shell function - is there a
way to fix this?  Is it becuase it's calling an old DOS
program?

If so, is there another way I can zip and unzip files
programmatically, without user intervention, from code?

Many thanks,
Margaret
Margaret Bartley - 09 Mar 2005 14:04 GMT
Correction: the program that's left running is WinOldAp, not
WinOldApp

> I'm using Terry Kreft's Shell Wait code from the mvps
> website to use an old MS-DOS program, PKZip, to zip some
[quoted text clipped - 25 lines]
> Many thanks,
> Margaret
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.