Search found 147 matches

by DOSadnie
09 Jun 2025 10:25
Forum: DOS Batch Forum
Topic: Showing a detailed report after deleting of specified files scattered on all volumes
Replies: 0
Views: 83

Showing a detailed report after deleting of specified files scattered on all volumes

Two years ago I had a problem of doing the task of scanning all pre-choosen volumes and deleting from them temporary Excel [XLSM] files that sometimes get left over after usage of that program [after crash of operating system most likely]. And with the help of some good people from this forum I did ...
by DOSadnie
08 Jun 2025 04:28
Forum: DOS Batch Forum
Topic: Info about deletion lies when no items were deleted when dealing with sub-folders
Replies: 2
Views: 5209

Re: Info about deletion lies when no items were deleted when dealing with sub-folders

Thank you I have ended up with such polished code @echo off :: files setlocal enabledelayedexpansion set "FILES_IN_THIS_FOLDER_WILL_BE_DELETED=C:\q\Corel Draw - CDR Auto-Backup Files\" set "FLAG_FOR_FILES=" for /r "%FILES_IN_THIS_FOLDER_WILL_BE_DELETED%" %%F in (*) do ( set "FLAG_FOR_FILES=Y" if not...
by DOSadnie
08 Dec 2024 12:46
Forum: DOS Batch Forum
Topic: [SOLVED] Creating multiple copies of a whole folder in folders with consecutive date and time
Replies: 8
Views: 25691

Re: [SOLVED] Creating multiple copies of a whole folder in folders with consecutive date and time

I have made a significant update to this script It now takes care of the issue: what if the copying process is interrupted [e.g. with a sudden system crash] - and thus the user is left with a folder that supposedly contains a backup [as indicated by its name] but in reality has incomplete content? T...
by DOSadnie
18 Feb 2024 03:39
Forum: DOS Batch Forum
Topic: Move flashing prompt sign away from left edge of PowerShell window
Replies: 7
Views: 40185

Re: Move flashing prompt sign away from left edge of PowerShell window

I made basic tests files with just prompt $S$S$S$P$G Read-Host function prompt { "$(' ' * 3)$(Get-Location)> " } Read-Host function prompt { Write-Host (" " * 3) -NoNewline return " $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) " } Read-Host but they all wer...
by DOSadnie
11 Feb 2024 04:43
Forum: DOS Batch Forum
Topic: Deleting from a Recycle Bin folder all items except certain file formats
Replies: 13
Views: 35063

Re: Deleting from a Recycle Bin folder all items except certain file formats

I made some progress [...] But it also unnecessarily goes through every item in the folder where this BAT is residing - and spits out for every one of them info [...] I finally managed do take care of that - and on top of it also hid the The system cannot find the drive specified. messages showing ...
by DOSadnie
20 Jan 2024 03:51
Forum: DOS Batch Forum
Topic: Putting BAT on Taskbar or inserting it to Tray
Replies: 4
Views: 22468

Re: Putting BAT on Taskbar or inserting it to Tray

DOSadnie wrote:
11 Aug 2023 02:44
[...]
How about moving it to the Tray area? Does any one have ideas on how to do it?
Any ideas about how to insert a script into the Tray and make it stay there as an always accessible icon?
by DOSadnie
29 Dec 2023 11:01
Forum: DOS Batch Forum
Topic: Deleting from a Recycle Bin folder all items except certain file formats
Replies: 13
Views: 35063

Re: Deleting from a Recycle Bin folder all items except certain file formats

Wow indeed, as apparently you have never ever accidentally deleted something and also never run out of disk space - thus never had to empty the Recycle Bin and never realized after some time that a re-worked item is missing. Wow

Or you just do not understand what last resort means
by DOSadnie
28 Dec 2023 07:16
Forum: DOS Batch Forum
Topic: Deleting from a Recycle Bin folder all items except certain file formats
Replies: 13
Views: 35063

Re: Deleting from a Recycle Bin folder all items except certain file formats

So does anyone know how to do this?

And also how make this latest version of ny script to apply itself also to the last volume present in the system, as apparently it ignores my volume W [which is my last]


I tried writing a corresponding PS1 script but failed miserably at it
by DOSadnie
28 Dec 2023 03:24
Forum: DOS Batch Forum
Topic: Move flashing prompt sign away from left edge of PowerShell window
Replies: 7
Views: 40185

Re: Move flashing prompt sign away from left edge of PowerShell window

DOSadnie wrote:
18 Nov 2023 11:45
If you mean replacing line
[...]
Well, did you?
by DOSadnie
09 Dec 2023 10:24
Forum: DOS Batch Forum
Topic: Timeout with GUI adjustments breaks its design after first second passes
Replies: 16
Views: 86564

Re: Timeout with GUI adjustments breaks its design after first second passes

Why you didn't tested my solution as I wrote it (more than one month ago)? As I have just now tested this once more: that code @echo off cls echo/ echo Info about what the script will do echo/ setlocal EnableDelayedExpansion rem Get an ASCII CR (13) character for /F %%a in ('copy /Z "%~F0" NUL') do...
by DOSadnie
09 Dec 2023 09:27
Forum: DOS Batch Forum
Topic: The timeout command blocks the W key from closing CMD window
Replies: 3
Views: 26105

Re: The timeout command blocks the W key from closing CMD window

How could this be happening It's obviously a bug in the code [...] Feel free to reach out to Microsoft [...] I am unable to do so because when trying to create Microsoft Account nothing happens after I enter the verification code from an e-mail I receive [i.e. there is no next step to be chosen / d...
by DOSadnie
18 Nov 2023 11:45
Forum: DOS Batch Forum
Topic: Move flashing prompt sign away from left edge of PowerShell window
Replies: 7
Views: 40185

Re: Move flashing prompt sign away from left edge of PowerShell window

If you mean replacing line

Code: Select all

$Prompt = " " * 2 + " "
with either

Code: Select all

$Prompt = "$S$S$P$G"
$Prompt = $S$S$P$G
$Prompt $S$S$P$G
then this does not work
by DOSadnie
18 Nov 2023 11:27
Forum: DOS Batch Forum
Topic: How to interrupt script by closing the CMD window with any key?
Replies: 7
Views: 38799

Re: How to interrupt script by closing the CMD window with any key?

DOSadnie wrote:
13 Oct 2023 08:49
[...]
does not make the CMD window succumb to pressing of >>w<<
I have just made a new topic about this >>W<< issue:
viewtopic.php?f=3&t=10945
by DOSadnie
18 Nov 2023 11:26
Forum: DOS Batch Forum
Topic: The timeout command blocks the W key from closing CMD window
Replies: 3
Views: 26105

The timeout command blocks the W key from closing CMD window

As pointed out in this discussion https://www.dostips.com/forum/viewtopic.php?f=3&t=10897&p=69149#p69008 apparently the timeout command makes it impossible to press any key to close CMD window, because the W is exempted from that rule. Here is basic example @echo off echo Pressing of any key will cl...