Create A Batch File To Open The Newest File

March 12, 2011 at 18:17:05
Specs: Windows XP
I have a folder with lots of excel files and I need to open the newest file.
Can all this be done in a .bat script?

See More: Create A Batch File To Open The Newest File

Report •


#1
March 13, 2011 at 00:14:31
:: ==========================================
::
:: jdet.bat Sun 13-03-2011 14:46:11.29
@echo off & setLocal enableDELAYedeXpansioN

for /f "tokens=* delims= " %%a in ('dir/b/o-d *.xls') do (
start excel %%a
goto :eof
)


=====================================
Life is too important to be taken seriously.

M2


Report •

#2
March 13, 2011 at 01:30:16
Great
Thanks!!

Report •
Related Solutions


Ask Question