Creating Batch Script to Move Files to other directory

April 28, 2014 at 19:33:55
Specs: Windows 7
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.

See More: Creating Batch Script to Move Files to other directory

Report •

April 28, 2014 at 21:13:42
Post the output of this:

::====== script starts here ===============
:: rich.bat 2014-04-29 11:07:37.27
@echo off > NEWFILE & setLocal enableDELAYedeXpansioN

for /f "tokens=* delims= " %%a in ('dir/b newfile') do (
::====== script ends here =================

M2 Golden-Triangle

Report •

April 28, 2014 at 22:08:47
hi, i dont understand. Where shud i set the path for my directory?

Report •

April 29, 2014 at 01:07:41
Put the script in an empty directory and run it.

M2 Golden-Triangle

Report •
Related Solutions

Ask Question