Hello, i have created multiple folder so I can
orginise my files. The files are all excel sheets
and are named smit14.xls, abbo10.xls etc.....
The folders are the same names excel sheets
however they are in a directory like this:
h:\PM\Pfiles\A\Abbot10\ or
h:\PM\Pfiles\S\smit14\what i need is to be able to move all the
current excel files which are currently sitting in
one folder to their assigned folder
@echo off & setLocal EnableDELAYedeXpansion pushd c:\files
for /f "tokens=* delims= " %%a in ('dir/b *.xls') do (
set F=%%a
set F=!F:~0,1!
move %%a h:\PM\Pfiles\!F!
)
=====================================
Helping others achieve escape felicityM2
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |