Creating Batch Script to Move Files to other directory

Status
Not open for further replies.

devan2511

Estimable
Apr 28, 2014
1
0
4,510
Hi Support,

I need help to create a batch file. I am just a normal IT Support guy, dont know how to create batch script. I will appriciate if someone could help me. My requirement as below,

I have 2 directory which is Directory A & Directory B.

Users will drop document files in Directory A. I want the file in directory A automatically move to Directory B, But the file should be moved by creating new folder in Directory B. The folder name shud be the date it been moved.

I will create a schedule task to run the batch file.. Someone please help.

Thank You.
 
Solution
you'd want to do this in VBscript (VBS)

if you google VBS for cutting/copying/pasting files... there will be tons of stuff.
same goes for creating a folder based on date/time

in task scheduler, you could have a batch file that kicks off your VBS

as long as directory A and directory B are static, it's not too hard.

i have scripts that do these things, but not all of those in one place. send me a private message tomorw around noon EST, i might have something for you to use as a base template

lowriderflow

Distinguished
Jul 5, 2010
76
0
18,610
you'd want to do this in VBscript (VBS)

if you google VBS for cutting/copying/pasting files... there will be tons of stuff.
same goes for creating a folder based on date/time

in task scheduler, you could have a batch file that kicks off your VBS

as long as directory A and directory B are static, it's not too hard.

i have scripts that do these things, but not all of those in one place. send me a private message tomorw around noon EST, i might have something for you to use as a base template
 
Solution
Status
Not open for further replies.