Search found 13 matches
- 29 Dec 2013 23:09
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
Try this on some sample files: When it prompts you to delete the file, pressing Enter will bypass the deletion. Typing y and enter will delete the file. The first three lines contain items for you to set. Thank you. This seems to do the trick. Will have to test with more files and see how it does f...
- 29 Dec 2013 08:58
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
foxidrive wrote:Ok, creation date.
Plain batch is going to be rather slow to process a lot of files.
yea ok so how is it done?
- 29 Dec 2013 08:15
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
penpen has written a batch file that is very quick to get the latest file. It would also be quick to figure out if the file belongs to user2. Is that what you need to do? Detect if the latest file belongs to user2 or not? Or do you really need to find the latest file that user2 has edited? I need t...
- 29 Dec 2013 07:04
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
for the simplest case, i thought dir /O:d /T:C /q /n and parsing the output would suffice. No. It has to descend through a folder tree and get the latest file amongst them all. No the above code does not work for me. It does not even go to the right folder. It ends up on the my documents folder whi...
- 29 Dec 2013 01:21
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
I'm trying to get the mechanics of the procedure sorted out. It's still not possible to show a single file in explorer. for the simplest case, i thought dir /O:d /T:C /q /n and parsing the output would suffice. If TS wants to double click on the shortcut and show the file properties, a "pause&...
- 28 Dec 2013 21:17
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
Okay how about skip the deletion. Is there a way to have windows explorer display the last created file and check the owner? Would it be workable to find the latest file, and then check if the owner was the user2? So would user2 be creating files at the current point in time, and then run the batch...
- 28 Dec 2013 20:33
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
So I can run a batch file quickly with one click and have it find the last created file and display it in windows explorer. Then I can confirm by sight if it is the one I want to delete. The purpose of the batch file would be to find the last created file within subfolders and bring it up in window...
- 28 Dec 2013 20:22
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
So I can run a batch file quickly with one click and have it find the last created file and display it in windows explorer. Then I can confirm by sight if it is the one I want to delete. The purpose of the batch file would be to find the last created file within subfolders and bring it up in window...
- 28 Dec 2013 20:09
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
Windows Explorer helps you navigate your folder structure. It doesnt open files. So saying you want Explorer to open the last created file does not make sense. Applications open files and there has to be a file type association for it to open automatically. I don't want to open the file. I only wan...
- 28 Dec 2013 18:46
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
Windows Explorer helps you navigate your folder structure. It doesnt open files. So saying you want Explorer to open the last created file does not make sense. Applications open files and there has to be a file type association for it to open automatically. I don't want to open the file. I only wan...
- 28 Dec 2013 18:44
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
foxidrive wrote:What is the scope of the search?
Are you searching through a lot of files?
Do you need it to be fast?
Searching one directory with approximately 200 subfolders and one or two files in each.
Yes it has to be fast.
- 28 Dec 2013 01:18
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Re: Batch file to open windows explorer to last created file
Thanks for the explanation. I tried it but I need it to check subfolders and only bring up the latest file not the subfolder itself. Also any idea how to match the owner of the file? For instance I would like the owner = user2 .
Thanks again,
Gibs
Thanks again,
Gibs
- 27 Dec 2013 22:36
- Forum: DOS Batch Forum
- Topic: Batch file to open windows explorer to last created file
- Replies: 34
- Views: 34059
Batch file to open windows explorer to last created file
Hello All, Just found this forum and was hoping someone could help me out. I need to create a batch file that will open windows file explorer to the last file created (not folder but file) and also check against the owner so that the owner = user2, then highlight the file and delete with a confirmat...