View Single Post
  #4 (permalink)  
Old 08-23-2008, 04:57 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 551
Default

Hello.

Try using 'Loop For Each file in a folder' command found under 'Conditions/Loops' command category.
If you want to perform some actions for all files in a folder, you can use this command. You can get the name of the file by using the System Variable $FileName$. Similarly to get the extension of the file you can use $Extension$ System variable and to get the path of the folder under which this file resides use the System Variable $CurrentDirectory$ . All these system variables will return empty value when used outside this looping command. Text Format of commands would appear as follows,

1) Start Loop " Each File in C:\Reports\data\aug-2008"
2) Message Box: "$CurrentDirectory$\$FileName$.$Extension$"
3) End Loop

Hope that helps.
Reply With Quote