Creating Batch Script to Move Files to other directory

devan2511

Estimable
Apr 28, 2014
1
0
4,510
0
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.
 

lowriderflow

Distinguished
Jul 5, 2010
76
0
18,610
13
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
13
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
 
Thread starter Similar threads Forum Replies Date
PepeTheDog Apps General Discussion 3
S Apps General Discussion 6
A Apps General Discussion 5
T Apps General Discussion 1
S Apps General Discussion 4
T Apps General Discussion 1
M Apps General Discussion 1
M Apps General Discussion 1
R Apps General Discussion 1
M Apps General Discussion 2
G Apps General Discussion 1
M Apps General Discussion 2
C Apps General Discussion 4
A Apps General Discussion 1
D Apps General Discussion 4
Tom Waller Apps General Discussion 2
D Apps General Discussion 3
L Apps General Discussion 6
ntadmin101 Apps General Discussion 1
P Apps General Discussion 5

ASK THE COMMUNITY