Get file list not updating

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Get file list not updating

Post by kpassaur » Fri Nov 14, 2008 11:09 am

I am using a compiled macro with the Getfilelist command similar to this

GetFileList>c:\temp\*.*,files
Separate>files,;,file_names
If>%file_names_count%>0
MDL>Please remove files from the temp folder and restart
Exit>0
Endif

If there are no files it is fine, if there are it exits as it is supposed to. However, when the user removes the files and runs it again it says there are files in the folder.

There are no files in the folder, I have deleted them, went into dos and deleted them, checked for hidden files and there are none there.

The only way to by pass it is to reboot. I have checked in the task manager, since it is a compiled script and it is not running.

Any ideas as to why? If I change it to

GetFileList>c:\temp\*.tif,files

Then it runs fine

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Nov 14, 2008 12:25 pm

There are some hidden files. *.* will find everything.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Hidden files

Post by kpassaur » Fri Nov 14, 2008 12:30 pm

I used display hidden files and saw nothing there. I also went in with DOS and used del *.*

When I reboot it runs. Could there be a some kind of temp file that is hidden completly? But even so the program is no longer running (not in the task manager) so it should have everything it was looking at released.

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Nov 14, 2008 4:38 pm

Open the directory in DOS and type in attrib and see if any files show up. Attrib should display all files in the directory and the associated attributes.

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

File list

Post by kpassaur » Fri Nov 14, 2008 6:06 pm

Thanks, I'll try that. What I have done in the meantime is just check for the files that concern me. *.tif . However, it did puzzle me.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Nov 14, 2008 6:21 pm

Have you tried MDL>files to see what's there?

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

files not there

Post by kpassaur » Fri Nov 14, 2008 6:29 pm

Yes, and I tried in explorer, (with show hidden files) and I tried in dos as well.

What really gets me is that I know there is nothing there as if I reboot it is fine. Therefore they are not there. Second thought was that the program was looking for a file and that would cause it to happen, but in the task manager the script was not running.

I will live with *.tif but someone else may run into this.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Nov 14, 2008 6:35 pm

So what did the MDL show? I mean if the count from Separate is more than zero there must be something being returned by GetFileList. What was it?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

A Blank Box

Post by kpassaur » Fri Nov 14, 2008 7:39 pm

It showed a Blank Box. It has to be something in memory. As when rebooted it runs. Just like when you try to delete a folder and a program has a file open in it.

It may just be a think with images. As I know of imaging programs that lock up. The program is gone from the task manager, but you cannot delete the file as Windows will say it is open, yet it isnt. That is the closest thing I can think of that relates to this. I was only able to test it for files on one PC. However the same thing has happen on three. Since there are no tif images by changing it, perhaps that will work.

For instance in one case the files were being scanned in, what happens to the file that was in the process of being created if the scanner software crashs?

Here is another one, I have in the past compiled a macro in a folder, deleted the macro and tried to delete the folder and Windows says it cannot. Once I close MS I can, when this happens there is no Macro in the folder. But since MS wrote something in that folder sometimes it seems to put a hook? or something into it.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts