Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Automatically move files + make a .txt file

$
0
0

Hello, not sure if I'm at the right place but I'll give it a go:

I receive files in a certain folder structure. In there are several folders with files. Regardless of the folders, I would like to automatically move the files based on extension to target folders.

So for example:
First new folder ABC is created. After that, from the folders/files that I received it should do following steps:
*.sql is copied to ABC\sql
*.fmb is copied to ABC\forms
*.rpt is copied to ABC\reports

Next to that, all files with extension .sql are placed in a text file in folder ABC\sql, where the file names are listed below each-other.

Is there any way to accomplish this in some kind of Windows script?



Viewing all articles
Browse latest Browse all 15028

Trending Articles



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