Yes, thank you
I had to make sure I can go to basics for test purposes, because some of my more elaborate code somehow stopped working [viewtopic.php?f=3&t=12104&p=71384#p71384]. I think I need to take a break because its all getting mixed up in my head
Search found 159 matches
- 05 Jul 2025 08:41
- Forum: DOS Batch Forum
- Topic: Deleting hidden and read-only files with pure Batch [SOLVED]
- Replies: 2
- Views: 105
- 05 Jul 2025 08:36
- Forum: DOS Batch Forum
- Topic: Showing a detailed report after deleting of specified files scattered on all volumes
- Replies: 1
- Views: 295
Re: Showing a detailed report after deleting of specified files scattered on all volumes
Back then I must have performed some incompetent shallow tests - because the above does not really work now And also this version [that for tests purposes targets all kinds of XLSM files and not just hidden ones] also does not work @echo off chcp 65001 >nul :: ███ preparations ███ setlocal EnableDel...
- 04 Jul 2025 10:37
- Forum: DOS Batch Forum
- Topic: Deleting hidden and read-only files with pure Batch [SOLVED]
- Replies: 2
- Views: 105
Deleting hidden and read-only files with pure Batch [SOLVED]
Is it at all possible to use only a single UTF-8 BAT file and be able to find e.g.
P:\Excel file deletion test\hidden and read only\~$test file for potential deletion.xlsm
and delete it successfully?
I have no problem with doing this using a PS1 file, but I would like to do it using only Batch
P:\Excel file deletion test\hidden and read only\~$test file for potential deletion.xlsm
and delete it successfully?
I have no problem with doing this using a PS1 file, but I would like to do it using only Batch
- 30 Jun 2025 07:33
- Forum: DOS Batch Forum
- Topic: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?
- Replies: 5
- Views: 1047
Re: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?
I have slightly upgraded, polished and tested the snippet within my multi-step BAT. Below is just that relevant fragment- it can be saved and successfully executed from a standalone UTF-8 BAT. [The pauses near this code allow user for manual deletion of temporary files - and thus for experiencing th...
- 25 Jun 2025 07:28
- Forum: DOS Batch Forum
- Topic: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?
- Replies: 5
- Views: 1047
Re: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?
You are right: it was not working correctly- because the sample numbers were to big. I have wrote in some comments about this to the code As for unusual grouping of numbers [like in a bank account number]: this is what happens if you spend way too many hours on dealing with various snippets- you see...
- 23 Jun 2025 06:26
- Forum: DOS Batch Forum
- Topic: Move flashing prompt sign away from left edge of PowerShell window
- Replies: 10
- Views: 40747
Re: Move flashing prompt sign away from left edge of PowerShell window
[The below is something that should rather be struck from the record - because it is most likely not true and to which current claim attest my later findings] So far I have a limited success: if I put this at the beginning of multi-step / multi-prompt script $global:NextPromptPrefix = '' function p...
- 22 Jun 2025 08:32
- Forum: DOS Batch Forum
- Topic: Move flashing prompt sign away from left edge of PowerShell window
- Replies: 10
- Views: 40747
Re: Move flashing prompt sign away from left edge of PowerShell window
I did some further tests. And unfortunately when trying to come up with a workaround utilizing re-opening of PowerShell window and / or temporary file, I stumbled upon the same issue as with my other script [https://www.dostips.com/forum/viewtopic.php?f=3&t=12105&p=71349#p71346]: the inability to st...
- 22 Jun 2025 07:11
- Forum: DOS Batch Forum
- Topic: Move flashing prompt sign away from left edge of PowerShell window
- Replies: 10
- Views: 40747
Re: Move flashing prompt sign away from left edge of PowerShell window
If I open PowerShell console as Administrator and paste in function prompt {Write-Host (" " * 3) -NoNewline} and press Enter, then I do get what I want i.e. the prompt line moved 3 space signs away from the left edge of that window But if I will save it as a PS1 file function prompt {Write-Host (" "...
- 22 Jun 2025 04:13
- Forum: DOS Batch Forum
- Topic: Stack Overflow article.
- Replies: 5
- Views: 3979
Re: Stack Overflow article.
[...] So AI will never be able to offer you a newer and more efficient solution than is available anywhere at the time. [...] Remember all those scenes in pre 2020s movies in which somebody was enchaining totally pixelated image and we all laughed at them? Or when people used to say that indulging ...
- 22 Jun 2025 04:06
- Forum: DOS Batch Forum
- Topic: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?
- Replies: 5
- Views: 1047
Re: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?
I thought of using VBS. But since it is deprecated by Microsoft, there is no sense in investing time in using it But I think I have a valid solution: a workaround using BAT > AHK > TXT > BAT I already managed to write test script: ; AutoHotkey V1 compatible [test] script for [future] subtraction of ...
- 20 Jun 2025 05:20
- Forum: DOS Batch Forum
- Topic: Simple script to reboot and automatically enter BIOS/UEFI
- Replies: 5
- Views: 3166
Re: Simple script to reboot and automatically enter BIOS/UEFI
I will throw in my 5 cents My BAT being used for firm resetting of system evokes the shutdown command with parameter /f because I do not want to go through any prompts about closure / saving of files. But despite this I must use also e.g. "C:\portables\NirSoft\NirCmd\nircmd.exe" killprocess "winamp....
- 19 Jun 2025 08:48
- Forum: DOS Batch Forum
- Topic: How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?
- Replies: 5
- Views: 1047
How to overcome 32-bits math limitation of BAT if PS1 workaround alerts HIPS repeatedly?
I have a multi-step BAT file that also has a somewhat long fragment which performs selective deletion and reports about that process with details The problem at hand is reporting of space saved due to removal of those files. That part of my BAT already reports OK after deletion of small files, but i...
- 09 Jun 2025 10:44
- Forum: DOS Batch Forum
- Topic: Finding cause of "The filename, directory name, or volume label syntax is incorrect" error when deleting files [SOLVED]
- Replies: 12
- Views: 12294
Re: Finding cause of "The filename, directory name, or volume label syntax is incorrect" error when deleting files [SOLV
I have managed to come up with a much better code that does the same task:
viewtopic.php?f=3&t=12104
viewtopic.php?f=3&t=12104
- 09 Jun 2025 10:25
- Forum: DOS Batch Forum
- Topic: Showing a detailed report after deleting of specified files scattered on all volumes
- Replies: 1
- Views: 295
Showing a detailed report after deleting of specified files scattered on all volumes
(This is not solved yet) 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 peo...
- 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: 5369
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...