Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scan folders

Status
Not open for further replies.

new2game

Programmer
Jan 20, 2004
10
US
Is there a way to setup one event that scans multiple folders on a single box for event data? It doesn't appear possible.

I need to check subfolders on an ftp server for customer activity. I don't want to create hundreds of events. And, it would be ideal if I can do something like 'root\*\*.extention'.

new2game
 
You can't do this directly as a source event. You can run a command file (dir *.extension /s in windows) to get a list and then process them within the map.
Not sure if there is an ftp equivalent.

Tim
 
On the lines of the Tim, probably what you can do is create 2 fields in the map in the first field you can use the Exit command like :

Exit ( "ls " , "*.extension" , " " )
whose synmtax is :
EXIT (program_name, command_line_arg1, command_line_arg2)

which will give you the list of whatever extension file u would like to find and then use this field's contents in the second field to do ur processing.

Cheers,
Shrini.
 
Thanks, not much exposure to batch commands so this should help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top