Saved Bookmarks
| 1. |
Solve : Batch file to find latest excel file created and open it in windows xp? |
|
Answer» HI, I would like to have a batch code to automatically find the latest excel file created by a server INSIDE this location D:\report\, and automatically opens it from other PCs connected in the same LAN. The filenames inside the D:\report starts with the date eg: 20090417* The reason I need this help is because I do not want the user from the other PCs to use windows explorer and navigate to all other locations in the server harddrive. They might do some damage if unintentionally deleted any of other files. I am not allowed to change any file attribute in the server to make things hidden & etc. Thanks in advance for your help.do you SHARE d:\report\ folder in the server? if yes then, the code is something like this: Code: [Select]@ECHO off for /f "TOKENS=*" %%a in ('dir/b/o-d/tc \\servername\sharename\*.xls 2^>nul') do ( start "" %%a goto:eof ) untested |
|