Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

How to make a script that checks ID in a file and move it to folder with same ID.

$
0
0
Hi,

I appreciate if someone could help me on this one.

I have following setup of files and sub-folders:

algo_xxx\
algo_yyy\
algo_zzz\
xxx_algo_report.csv
yyy_algo_report.csv
zzz_algo_report.csv
hhh_algo_report.csv

Is there anyone who know a script to check if a file contains ID xxx, yyy, zzz in the beginning of a file and then move it to a sub-folder that ends with same ID? There is one file with ID hhh that does not have any sub-folder and it should be ignored.

Best regards,

Mika

Viewing all articles
Browse latest Browse all 688

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>