Search found 908 matches

by ShadowThief
22 Oct 2019 05:56
Forum: DOS Batch Forum
Topic: [Solved] hELP
Replies: 5
Views: 1113

Re: hELP

Get rid of that second setlocal enabledelayedexpansion and following endlocal; you don't need them and that's what's breaking the script
by ShadowThief
16 Oct 2019 17:02
Forum: DOS Batch Forum
Topic: How to do change "Terminate batch job (Y/N)?"
Replies: 7
Views: 1642

Re: How to do change "Terminate batch job (Y/N)?"

It's built into cmd.exe; you'd have to hex edit the executable to have it return a different string.
by ShadowThief
30 Sep 2019 18:42
Forum: DOS Batch Forum
Topic: Enabling the internal debug outputs of cmd.exe
Replies: 17
Views: 8685

Re: Enabling the internal debug outputs of cmd.exe

Yesterday my Windows 10 home updated to win version 1903 (build 18362.387) and i noticed that enabling debug stopped working. My pc was kind of problematic one because it refused to install that a long time claiming the "Intel Rapid Store Technology (Intel RST)" must be updated first, which was odd...
by ShadowThief
19 Sep 2019 19:32
Forum: DOS Batch Forum
Topic: how to check file exists or not : batch script
Replies: 2
Views: 1603

Re: how to check file exists or not : batch script

Code: Select all

If exist file.txt (
    echo File exists
) else (
     echo File does not exist
 )
by ShadowThief
17 Sep 2019 10:46
Forum: DOS Batch Forum
Topic: press no on external msgbox with yesno option
Replies: 3
Views: 1672

Re: press no on external msgbox with yesno option

You can't use batch to interact with GUIs.
by ShadowThief
17 Sep 2019 10:37
Forum: DOS Batch Forum
Topic: Looking for a specific book
Replies: 16
Views: 2831

Re: Looking for a specific book

I don't know why you're so set on this particular book. There are no books about advanced modern batch techniques (you'll get some about advanced DOS, but that won't help you in 2019) and there are certainly no upcoming books about batch, since pretty much everybody has moved on to PowerShell. If yo...
by ShadowThief
16 Sep 2019 21:10
Forum: DOS Batch Forum
Topic: Wait Process Window to be Activate
Replies: 4
Views: 1307

Re: Wait Process Window to be Activate

I take it to mean "has keyboard focus"
by ShadowThief
16 Sep 2019 10:22
Forum: DOS Batch Forum
Topic: Wait Process Window to be Activate
Replies: 4
Views: 1307

Re: Wait Process Window to be Activate

I think they mean they want to wait for the window to be active
by ShadowThief
08 Sep 2019 10:08
Forum: DOS Batch Forum
Topic: Looking for a specific book
Replies: 16
Views: 2831

Re: Looking for a specific book

No editor on the planet worth their salt would allow a title with the phrase "Advanced Learning;" it simply isn't grammatical. Possibilities in case the book wasn't red: Advanced Batch File Programming Batchography: The Art of Batch Files Programming (this is the only batch book that I'm aware of th...
by ShadowThief
06 Sep 2019 07:49
Forum: DOS Batch Forum
Topic: Looking for a specific book
Replies: 16
Views: 2831

Re: Looking for a specific book

Possibilities assuming your brain autocorrected "DOS" to "batch": A Concise Introduction to DOS Undocumented DOS: A Programmer's Guide to Reserved MS-DOS Functions and Data Structures Peter Norton's DOS Guide Possibilities assuming you got the languages wrong entirely: Microsoft PowerShell, VBScript...
by ShadowThief
06 Sep 2019 07:32
Forum: DOS Batch Forum
Topic: Looking for a specific book
Replies: 16
Views: 2831

Re: Looking for a specific book

What year did you read this book in? What language was it in? What country were you in?
by ShadowThief
27 Aug 2019 05:29
Forum: DOS Batch Forum
Topic: SCRIPT help. for syntex problem
Replies: 4
Views: 1510

Re: SCRIPT help. for syntex problem

You never enable delayed expansion anywhere, so !rc! doesn't mean anything to the interpreter.
by ShadowThief
27 Aug 2019 03:08
Forum: DOS Batch Forum
Topic: SCRIPT help. for syntex problem
Replies: 4
Views: 1510

Re: SCRIPT help. for syntex problem

Without seeing the context that this snippet is in, it's impossible to say. Please post all of the code.
by ShadowThief
27 Aug 2019 03:05
Forum: DOS Batch Forum
Topic: "bat" file keeps closing after executing
Replies: 5
Views: 1552

Re: "bat" file keeps closing after executing

Personally, I'm not going to run your script because it kills any process except for the ones listed in your script and you're missing some super important system processes you're blowing away and restoring %TEMP%, which won't work if anything is using the directory at the time you're deleting WIN38...
by ShadowThief
27 Aug 2019 02:55
Forum: DOS Batch Forum
Topic: string not working
Replies: 3
Views: 1340

Re: string not working

You've got two options: Option 1 (recommended) - Use double quotes instead of single quotes in the set statement. Note that if you go this route, you should move the first double quote to the left of the variable name so that you get the benefit of quotes without the quotes actually being appended t...