Move file to certain folder based on a value within the file

Discuss Task Sequences and Scripting related issues.

Move file to certain folder based on a value within the file

Postby Tech Support » Mon Nov 05, 2012 1:19 pm

This is a user email support request:

We need to move XML files when they are received/saved into a directory, say c:\XMLrecieved, then depending on the below criteria the files need to be moved out to different directories:-

If the file contains ‘TransactionType=”PreIssue”’ move to c:\preissue
If the file name is like LBO_ move to c:\lbo
And if the file name is like TTS move to c:\TTS

I can see how to move the files based on file name, but can I move the files based on a value within the file ?
Tech Support
Site Admin
 
Posts: 1276
Joined: Thu May 25, 2006 11:12 am

Return to Task Sequences, Chains and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron