~~David~~ has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that my files won't delete, because they are still open by PowerPoint. I tried to put a sleep after the SaveAs, but then it paused prior to the Save! This doesn't seem to make any sense to me. Can anyone explain why this is occuring. Thanks,$pres->SaveAs("$filename"); #pres is a PP presentation #lets clean up the directory #@files is a list of all filenames I use +d to create the overall file. foreach $file (@files){system("del \"$file\"")};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Odd Timing Executing Lines of Code
by Zaxo (Archbishop) on Feb 27, 2007 at 16:58 UTC | |
|
Re: Odd Timing Executing Lines of Code
by holli (Abbot) on Feb 27, 2007 at 17:01 UTC | |
by ~~David~~ (Hermit) on Feb 27, 2007 at 17:42 UTC | |
|
Re: Odd Timing Executing Lines of Code
by jettero (Monsignor) on Feb 27, 2007 at 17:02 UTC | |
|
Re: Odd Timing Executing Lines of Code
by diotalevi (Canon) on Mar 01, 2007 at 02:22 UTC |