Search found 160 matches

by drgt
17 Oct 2021 10:02
Forum: DOS Batch Forum
Topic: Refer to file made by date / time variable
Replies: 6
Views: 6074

Refer to file made by date / time variable

Thank you Steffen.
I would have never found it...
Regarding the colons you mentioned, that is why I wrote "suppose'.
by drgt
17 Oct 2021 09:14
Forum: DOS Batch Forum
Topic: Moving Empty Folders
Replies: 9
Views: 7714

Moving Empty Folders

OK.
By help message I suppose you mean the one shown when I type for /? I on the command prompt?
by drgt
17 Oct 2021 09:10
Forum: DOS Batch Forum
Topic: Refer to file made by date / time variable
Replies: 6
Views: 6074

Refer to file made by date / time variable

Suppose
Dir /a-D /b >%date%%time%.txt

How to refer to that file further down the code?
Time would have advanced so %date%%time%.txt won't be found.
by drgt
17 Oct 2021 08:58
Forum: DOS Batch Forum
Topic: Moving Empty Folders
Replies: 9
Views: 7714

Moving Empty Folders

Like I said,... Alzheimer & brain damage!
Perhaps examples to use one or the other will help.
Are there instances where one will work but not the other (and vice versa)?
by drgt
17 Oct 2021 08:46
Forum: DOS Batch Forum
Topic: Copy Here
Replies: 2
Views: 3970

Copy Here

Thank you Steffen!
by drgt
17 Oct 2021 02:31
Forum: DOS Batch Forum
Topic: Copy Here
Replies: 2
Views: 3970

Copy Here

In windows explorer, right clicking, dragging a file and dropping in the same pane, the option to copy here is given. When taken, a new file is created "Copy (x) of ..." How to do the almost the same in command line appending (x) to the end of the file name where x is an ascending number depending o...
by drgt
16 Oct 2021 22:52
Forum: DOS Batch Forum
Topic: Moving Empty Folders
Replies: 9
Views: 7714

Moving Empty Folders

Thank you for pointing that out!

Alzheimer is setting in!

Although I do not really understand the difference between "delims=" and "usebackq delims="...
by drgt
16 Oct 2021 06:23
Forum: DOS Batch Forum
Topic: Moving Empty Folders
Replies: 9
Views: 7714

Re: Moving Empty Folders

Thank you Steffen!
by drgt
16 Oct 2021 05:54
Forum: DOS Batch Forum
Topic: Moving Empty Folders
Replies: 9
Views: 7714

Moving Empty Folders

I want to move empty folders specified in List.txt using the FOR command. What am I doing wrong? Screen Dump C:\Documents and Settings\user\Desktop\New Folder (5)>for %x in ("C:\Docume nts and Settings\user\Desktop\New Folder (5)\List.txt") DO move %x "C:\Docum ents and Settings\user\Desktop\New Fol...
by drgt
03 Oct 2021 10:30
Forum: DOS Batch Forum
Topic: Remove empty folders log
Replies: 7
Views: 6503

Remove empty folders log

Hi Steffen The reason in my try the WOULD log contained more than the empty folders list, was that my .bat file had the code >"rd.log" (for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do (>nul 2>&1 dir /s /b /a-d "%%~d") || echo "%%~d") instead of @echo off >"rd.log" (for /f "delims=" %%d in ('...
by drgt
02 Oct 2021 22:52
Forum: DOS Batch Forum
Topic: Remove empty folders log
Replies: 7
Views: 6503

Re: Remove empty folders log

Thank you Steffen The WOULD log includes all folders, not just empty ones The list format is: C:\Documents and Settings\user\Desktop\New Folder (5)>(dir /s /b /a-d "C:\Documents and Settings\user\Desktop\New Folder (5)\zip" 1>nul 2>&1 ) || echo "C:\Documents and Settings\user\Desktop\New Folder (5)\...
by drgt
02 Oct 2021 04:32
Forum: DOS Batch Forum
Topic: Remove empty folders log
Replies: 7
Views: 6503

Remove empty folders log

Hi I would like to modify the following .bat file to make a txt file of the folders (with the path) that just removed. (If possible, please show the code of another bat file that would make a txt file of the folders (with the path) that WOULD be removed). for /f "delims=" %%d in ('dir /s /b /ad ^| s...
by drgt
29 May 2020 10:39
Forum: DOS Batch Forum
Topic: Batch rename
Replies: 3
Views: 3753

Batch rename

Thanks a million!
by drgt
29 May 2020 03:09
Forum: DOS Batch Forum
Topic: Batch rename
Replies: 3
Views: 3753

Batch rename

Hi I need to batch rename a bunch of files that are located in one directory and have a name like this: "GF6DA7BXG44DO7BRGU4DQNJZG44DKNRRG42HYSKNI5PTEMBSGAYDIMRYL4ZDAMRTGIZXYLTKOBTXY2LNMFTWKL3KOBSWO7DOOVWGY" to 0001.jpg and so on till all processed. Would you please post here the batch file code? Th...