Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    Posts
    35

    How to verify, delete folder and files in temp folder..

    My proyect unzip files in temp folder, (pdf files), when I close autorun, and the pdf is open, not delete folder and files,

    How to make for autorun not close, and show message, until pdf are closed.
    Thanks

  2. #2
    SUF6NEWBIE Guest
    Hi, when you say "pdf is open" ...why is it open ..do you have to have AcroRd32.exe (adobe acrobat running while unzipping to temp folder).

    1. The Operating system monitors 'files in use' while your App is running

    tip: use the "setcurrentfolder" action to something Other than the location
    the files are being unzipped to...this helps force the Os 'letting go'
    of files in use and the created folder\contents can be deleted
    via the folder delete action (deletetree) ..as long as Acrobat is not running or other called programs are Closed.

    2. Try and create a unique folder in _TempFolder.."\\myunique\\";
    to unzip the files to.. can do a Folder.find action to see if target folder
    already exists..if so append something..eg myuniquefolder = "UserPdfs.Tmp";
    if this folder already exists set a new unzip folder variable:
    myuniquefolder = "UserPdfs.Tmp_1"; check if this exists etc
    setcurrentdir _TempFolder.."\\"; --root of users temp directory

    then unzip to: _TempFolder.."\\"..myuniquefolder.."\\";

    (if autorun.exe is running from the _TempFolder) you can unzip to the autoplay root folder(autocleanup will remove anything inside..)
    ..again as long as the file is Not being used by a program.


    3. Explore the enumerateprocccess action
    tip: the target exe for enumerate proccesses is acrord32.exe
    set the proccess find to: Close_Acro = "acrord32.exe";

    4. and the 'queryallowprojectclose' function in the docs
    (helps you control application.exit calls)

    if you have trouble I or someone else will post a code example for you..

Similar Threads

  1. Function to Copy a Folder, Sub-folders and files
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 50
    Last Post: 05-06-2006, 07:49 AM
  2. HOWTO: Build and Burn Your AutoPlay Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 03:43 PM
  3. INFO: Why Files are Renamed in the DATA Folder
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-24-2002, 03:36 PM
  4. INFO:The Files that are Built into the DATA Folder
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 03:15 PM
  5. Replies: 0
    Last Post: 12-12-2001, 01:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts