Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check files in a directory.
#1
Here I am again asking help for a new problem.

I need a macro which checks the presence of some files in a directory.
If the files are present it executes a subsequent macro. If one of the file are not present
he generate an allarm (opening a window allert and running also a sound allarm wav file).

Here and example:

Start "macro1" (in my case is a macro that modify some files)
When "macro1" finish :
Start "macro2" = check file in the directory "Archive"
If all the 4 file are present:
Start "macro3"
If one or more file are not present:
Run a .wav file and open an allert window


Directory name of the 4 file = "Archive"

File to be check = "test.txt"  +  "test1.txt"  +  "test2.txt"  +  "test3.txt"  (NOTE: in the directory should be present other file but the macro must take care only for the presence yes or not of the above files).

CASE 1
If one or more of the 4 files is not present :

1) open an allert window (with .wav audio file as allarm).
2) The .wav file must run for 10 or 15 seconds (settable time)
3) The allert windows it always remains open till I press a button
4) When I press button windows allert  disappeasr and Qmacro shutdown.

CASE 2
If all the 4 file are present:

Run "macro 3"


I read the "wait for" command help but I was not able to find the right solution.

As always you help will be very appreciated.

Thank you !!!


Messages In This Thread
Check files in a directory. - by asgro - 11-04-2021, 04:07 PM
RE: Check files in a directory. - by Kevin - 11-05-2021, 03:04 AM
RE: Check files in a directory. - by asgro - 11-05-2021, 05:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)