```code
@echo off
for /f "delims=" %%a in ('dir /od/b *.exe') do set name="%%a"
%name%
The second floor one has already been realized. It arranges the latest files at the end, using the characteristic of repeated assignment of set. When the for statement is executed, the last value assigned to name is the path of the latest file. What a clever idea! If it were me, I wouldn't be able to figure it out for a while, my brain is not enough, heh heh
[ Last edited by zhoushijay on 2007-3-12 at 06:29 PM ]
```
@echo off
for /f "delims=" %%a in ('dir /od/b *.exe') do set name="%%a"
%name%
The second floor one has already been realized. It arranges the latest files at the end, using the characteristic of repeated assignment of set. When the for statement is executed, the last value assigned to name is the path of the latest file. What a clever idea! If it were me, I wouldn't be able to figure it out for a while, my brain is not enough, heh heh
[ Last edited by zhoushijay on 2007-3-12 at 06:29 PM ]
```
