cancel
Showing results for 
Search instead for 
Did you mean: 

how to use "Scripting.FileSystemObject" in code stage ( how to get file extention name)

SusheelPerugu
Level 2
hi,  I am trying to get the file extention names from the attachment files in email.  i used fileSystemObject to extract file extention name. however i am getting errror in code stage.  can someone help me to resolve this issue.  ( i am trying to download attachments from email, but the signature files are also downloading with the attachment, hence i wanted to filter files using extention names)  Thaks! 
1 REPLY 1

NicholasZejdlik
Level 9
There is a Get Files method in the File Management utility. One of the parameters is a list of file names you want to search for, so you could pass it *.xlsx if you were searching for Excel files for example. If you do need a manual code stage for some reason, it may be easier to use .net's Path and Directory instead of a file system object.