Get file list not updating
Moderators: JRL, Dorian (MJT support)
Get file list not updating
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
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
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Hidden files
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.
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.
files not there
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.
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.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
A Blank Box
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.
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.