Search found 47 matches
- 06 Jan 2017 05:07
- Forum: DOS Batch Forum
- Topic: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
- Replies: 5
- Views: 6526
- 21 Nov 2016 20:44
- Forum: DOS Batch Forum
- Topic: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
- Replies: 5
- Views: 6526
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: 25490
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: 7334
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: 7334
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: 33903
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: 33903
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: 7334
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: 33903
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: 33903
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: 35323
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: 7334
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...
- 05 Nov 2015 22:14
- Forum: DOS Batch Forum
- Topic: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
- Replies: 32
- Views: 33903
Re: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
Here's the entire block to date: system ("CD\\ & PUSHD %SystemRoot%\\Temp & SET KEY_NAME=\"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" & SET \"VALUE_NAME=Userinit\" & (FOR /F \"USEBACKQ SKIP=2 TOKENS=1-4 DELIMS= \" %A IN (`REG ...
- 05 Nov 2015 09:07
- Forum: DOS Batch Forum
- Topic: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
- Replies: 32
- Views: 33903
Re: Executing GOTO/CALL in a cmd.exe < NotBatch.txt file!
There's a problem with with REG ADD that's cropped up: SET KEY_NAME="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" SET "VALUE_NAME=Userinit" SET "NEWREGVALUE=C:\Windows\System32\userinit.exe," ECHO %KEY_NAME% %VALUE_NAME% %CURREGVALUE% %NEWREGVALUE% REG AD...
- 04 Nov 2015 23:25
- Forum: DOS Batch Forum
- Topic: All Command Output & Errors to txt
- Replies: 9
- Views: 7334
All Command Output & Errors to txt
I applied David's last code block for Script hybrid , which works fine for STDOUT. @if (@X)==(@Y) @end /* Harmless hybrid line that begins a JScript comment ::--- Batch section within JScript comment ---------------------------- @echo off ::This block of code handles the TEE by calling the internal ...