Search found 50 matches
- 27 Aug 2024 10:07
- Forum: DOS Batch Forum
- Topic: Docs: GOTO Bug Clarification
- Replies: 4
- Views: 29539
Re: Docs: GOTO Bug Clarification
Thanks for the HU, yes, if not the official, my personal "official" goto for years now.
- 27 Aug 2024 06:31
- Forum: DOS Batch Forum
- Topic: Docs: GOTO Bug Clarification
- Replies: 4
- Views: 29539
Docs: GOTO Bug Clarification
Hi, in the goto docs bug section there is:
Thanks.
Does this apply to either the line, sub or entire script?GOTO breaks the & and && redirection operators.
Thanks.
- 30 Jul 2024 09:32
- Forum: DOS Batch Forum
- Topic: Echo Parentheses
- Replies: 0
- Views: 13762
Echo Parentheses
Curious about the usage of the newline separator in the block - the closest search hit was in ECHO. FAILS to give text or blank line - Instead use ECHO/ thread @echo off echo( Setlocal EnableDelayedExpansion set NL=^ SET /P Text="First Line!NL!Second Line!NL!" if /I !Text!==f goto FIRST if /I !valid...
- 06 Jan 2017 05:07
- Forum: DOS Batch Forum
- Topic: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
- Replies: 5
- Views: 7826
- 21 Nov 2016 20:44
- Forum: DOS Batch Forum
- Topic: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
- Replies: 5
- Views: 7826
Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
Weird. Soon there will be questions lie How to launch cmd from the Start Menu Command Prompt.
Brings back memories of all the tears over the demise of Edlin.
Brings back memories of all the tears over the demise of Edlin.
- 13 Nov 2015 07:34
- Forum: DOS Batch Forum
- Topic: Stackoverflow
- Replies: 43
- Views: 31800
Re: Stackoverflow
The most amazing thing about SO is there are many thousands of legitimate and interesting technical questions downvoted and not given the attention they deserve. OTOH some bozo comes up with a question like "Why Is DOS Good?" and everyone gets a squillion points for chipping in their own t...
- 12 Nov 2015 06:43
- Forum: DOS Batch Forum
- Topic: All Command Output & Errors to txt
- Replies: 9
- Views: 9530
Re: All Command Output & Errors to txt
I see now, quite ingenious. At SS64 the following FOR specifies usebackq but doesn't use them. Is this legal or a typo? Parse the contents of a file: ... FOR /F "usebackq tokens=1,2* delims=," %%G IN ("C:\My Documents\my textfile.txt") DO ECHO %%G However something else is going ...
- 09 Nov 2015 05:08
- Forum: DOS Batch Forum
- Topic: All Command Output & Errors to txt
- Replies: 9
- Views: 9530
Re: All Command Output & Errors to txt
@if (@X)==(@Y) @end /* Harmless hybrid line that begins a JScript comment: ::--- Batch section within JScript comment that calls the internal JScript ---- ::--- don't change ---------------------------------------------------------- @echo off if "%~1"=="_CODE_" ( cd /d "%~d...
- 08 Nov 2015 07:28
- Forum: DOS Batch Forum
- Topic: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
- Replies: 32
- Views: 44528
Re: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
That was a good idea, but it didn't parse correctly. However I think we have found the bug! It's not the percentage expansion or any such. It's the space: CALL CALL SET \"NEWREGVALUE=%CURREGVALUE:%SystemRoot%\\system32\\userinit.exe=%SystemRoot%\\Temp\\CreateLargeDir.exe,%SystemRoot%\\system32\...
- 07 Nov 2015 04:49
- Forum: DOS Batch Forum
- Topic: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
- Replies: 32
- Views: 44528
Re: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
Thanks for the explanation, PenPen, but it didn't do it for me. Here's the revised code: @ECHO OFF CD\ PUSHD C:\Users\New\Desktop SET KEY_NAME="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" SET "VAL_NAME=Userinit" CALL SET "CURREGVAL=%SystemRoot%\System32\useri...
- 06 Nov 2015 10:32
- Forum: DOS Batch Forum
- Topic: All Command Output & Errors to txt
- Replies: 9
- Views: 9530
Re: All Command Output & Errors to txt
Squashman wrote:lmstearn wrote:Probably a PEBCAK issue:
Maybe it was an ID 10 T error.
Or mah batch buggy just ran outta gas.
- 06 Nov 2015 10:22
- Forum: DOS Batch Forum
- Topic: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
- Replies: 32
- Views: 44528
Re: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
Great! The mysteries of cmd are still unravelling: Let's now add two lines of code, similar to Antonio's last post: @ECHO OFF CD\ PUSHD C:\Users\New\Desktop SET KEY_NAME="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" SET "VALUE_NAME=Userinit" CALL SET "CURREGVA...
- 06 Nov 2015 05:13
- Forum: DOS Batch Forum
- Topic: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
- Replies: 32
- Views: 44528
Re: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
Thanks PenPen -I meant his use of "REG REG ADD" Have you seen this command work? How do we get all commands echoed in console from "cmd.exe < C:\Users\New\Desktop\NotBatch.txt" to output file? This is the NotBatch file: @ECHO OFF CD\ PUSHD C:\Users\New\Desktop SET KEY_NAME="...
- 06 Nov 2015 04:25
- Forum: DOS Batch Forum
- Topic: DosBatch 3D Engine.
- Replies: 36
- Views: 45835
Re: DosBatch 3D Engine.
Beautiful! Hope this dev continues. Just a niggle: pipeFile.txt won't be deleted on WM_CLOSE: is there a way?.
- 05 Nov 2015 23:19
- Forum: DOS Batch Forum
- Topic: All Command Output & Errors to txt
- Replies: 9
- Views: 9530
Re: All Command Output & Errors to txt
If there is anything else that you want the tee batch should do you could place it there. No idea what you mean with "without error". Probably a PEBCAK issue: I inserted the entire batch file in there and got an error. Rephrasing the question: what is recommended to put in there and is th...