Endoro, thank you for your valuable input!
Just to clarify - file manager that succeeded with deletion was SpeedCommander?
Search found 18 matches
- 31 May 2013 02:31
- Forum: DOS Batch Forum
- Topic: Batch to delete directory with path-too-long problem.
- Replies: 16
- Views: 21175
- 31 May 2013 00:02
- Forum: DOS Batch Forum
- Topic: Batch to delete directory with path-too-long problem.
- Replies: 16
- Views: 21175
Re: Batch to delete directory with path-too-long problem.
Hm, yeah... LongPathTool is not free... I know we can make batch file that will be free and open...
- 30 May 2013 04:28
- Forum: DOS Batch Forum
- Topic: Batch to delete directory with path-too-long problem.
- Replies: 16
- Views: 21175
Re: Batch to delete directory with path-too-long problem.
Oh, the problem (the loop) was created using File Server Migration Wizard.
- 30 May 2013 03:30
- Forum: DOS Batch Forum
- Topic: Batch to delete directory with path-too-long problem.
- Replies: 16
- Views: 21175
Batch to delete directory with path-too-long problem.
I've had an interesting problem yesterday. I somehow managed to create infinite loop that created directories so deep that Windows could not handle any more. To clarify, the result was i:\one\two\one\two\one\two ... \one\two ... There was 471 subdirectories in the end. I have solved the deletion of ...
- 14 May 2013 01:21
- Forum: DOS Batch Forum
- Topic: Batch File to Move/Del Files of Specific Extension
- Replies: 4
- Views: 7705
- 09 May 2013 12:32
- Forum: DOS Batch Forum
- Topic: Change the name of the files(with extension *.txt)
- Replies: 15
- Views: 12434
Re: Change the name of the files(with extension *.txt)
Yes, I know... I'm still learning and I have fun doing this, so I try all scenarios - for fun. And because I was playing around again, I didn't wait for Parth to specify what date he wants, here's code which takes today's date and embeds it in the filename. :p @echo off for /f "tokens=2 delims=...
- 09 May 2013 11:04
- Forum: DOS Batch Forum
- Topic: Change the name of the files(with extension *.txt)
- Replies: 15
- Views: 12434
Re: Change the name of the files(with extension *.txt)
parthmittal2007 should really specify what he means by date. Like Squashman mentioned - are we talking about creation date of the file or last access date or last written date or maybe even just current date? parthmittal2007 - I'm awaiting for your clarification. In the meanwhile something more to p...
- 09 May 2013 10:17
- Forum: DOS Batch Forum
- Topic: Change the name of the files(with extension *.txt)
- Replies: 15
- Views: 12434
Re: Change the name of the files(with extension *.txt)
It's what I know and what works. You both can post your solutions, if I may say so... I never said it was optimal, but since no one has answered so far, I did my best. As for %~t, I have tried with that, but I couldn't separate time from the date so to only use date; like I said, anyone with comment...
- 09 May 2013 07:10
- Forum: DOS Batch Forum
- Topic: Change the name of the files(with extension *.txt)
- Replies: 15
- Views: 12434
Re: Change the name of the files(with extension *.txt)
Haha, only now I see that all your files are *.txt, so fixed: @echo off setlocal enabledelayedexpansion for /f "tokens=*" %%F in ('dir *.txt /b /a-d') do echo %%~nF>> temp.tmp <temp.tmp ( for /f "tokens=1-3 delims=." %%A in ('forfiles /c "cmd /c echo @fdate"') do ( set ...
- 09 May 2013 06:59
- Forum: DOS Batch Forum
- Topic: Change the name of the files(with extension *.txt)
- Replies: 15
- Views: 12434
Re: Change the name of the files(with extension *.txt)
This works now, however it also "works" the files created by the script itself, so still some work to do... @echo off setlocal enabledelayedexpansion for /f "tokens=*" %%F in ('dir /b /a-d') do echo %%~nF>> temp.tmp <temp.tmp ( for /f "tokens=1-3 delims=." %%A in ('forf...
- 09 May 2013 06:42
- Forum: DOS Batch Forum
- Topic: Change the name of the files(with extension *.txt)
- Replies: 15
- Views: 12434
Re: Change the name of the files(with extension *.txt)
This is how far I got... Maybe it'll be enough to help you out. I'll try and finish it... @echo off setlocal enabledelayedexpansion for /f "tokens=*" %%F in ('dir /b /a-d') do echo %%~nF>> temp.tmp <temp.tmp ( for /f "tokens=1-3 delims=." %%A in ('forfiles /c "cmd /c echo @f...
- 02 May 2013 09:19
- Forum: DOS Batch Forum
- Topic: Batch to rename all .avi and .srt files in order.
- Replies: 12
- Views: 13906
Re: Batch to rename all .avi and .srt files in order.
Yes, foxidrive; this is now exactly the way I wanted it... I was going to try to modify your previous code to achieve this, but thank you very much - you've done it for me (and anyone else who might need this)!
- 02 May 2013 08:30
- Forum: DOS Batch Forum
- Topic: Batch to rename all .avi and .srt files in order.
- Replies: 12
- Views: 13906
Re: Batch to rename all .avi and .srt files in order.
Thankyou both very much!
I've got it all now.
I've got it all now.
- 02 May 2013 08:24
- Forum: DOS Batch Forum
- Topic: Batch to rename all .avi and .srt files in order.
- Replies: 12
- Views: 13906
Re: Batch to rename all .avi and .srt files in order.
My bad... I was testing on my simple-text test files named test1.avi, test2.avi, test3.avi and title1.srt, title2.srt, title3.srt; your script didn't work with those... It works with the files in my first post... So... this could not be made so that it would work in all scenarios, given that both .a...
- 02 May 2013 08:12
- Forum: DOS Batch Forum
- Topic: Batch to rename all .avi and .srt files in order.
- Replies: 12
- Views: 13906
Re: Batch to rename all .avi and .srt files in order.
abc0502, yes I did. I'll try to debug it.