how to use "Scripting.FileSystemObject" in code stage ( how to get file extention name)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-12-18 09:50 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-12-18 09:52 PM
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.
