Search found 42 matches

by MicrosoftIsKillingMe
22 Dec 2017 13:49
Forum: DOS Batch Forum
Topic: How to measure total and free environment space? (XP SP3)
Replies: 5
Views: 1839

Re: How to measure total and free environment space? (XP SP3)

Thank you very much Aacini, though I'm unsure if that will get me there. Jeez, I find it hard to believe that env size info is not provided without having to run something. Even just having to check file contents (like config.nt) feels like too much work (for some; I don't mind it myself), because I...
by MicrosoftIsKillingMe
22 Dec 2017 13:31
Forum: DOS Batch Forum
Topic: Cooler multi line comments.
Replies: 8
Views: 3743

Re: Cooler multi line comments.

Hi npocmaka_, I like this. Thanks. A couple of minor comments... I found that the closing % is in fact needed at the end of the block, as post #1 is currently written, otherwise giving The system cannot find the batch label specified - /% For the same reason, if the first block has the closing % but...
by MicrosoftIsKillingMe
22 Dec 2017 02:24
Forum: DOS Batch Forum
Topic: How to measure total and free environment space? (XP SP3)
Replies: 5
Views: 1839

How to measure total and free environment space? (XP SP3)

101 question follows. Some of you superheros can can save your time and skip this because it's kid's stuff. My setup: on XP I use a LNK (not PIF) to cmd.exe which kicks off ntvdm.exe. (By the way the window and LNK Properties do not have a Memory tab; the properties with a window opened by a PIF DOE...
by MicrosoftIsKillingMe
19 Dec 2017 11:30
Forum: DOS Batch Forum
Topic: using %errorlevel% or %something% in a compound batch command ()
Replies: 11
Views: 3457

Re: using %errorlevel% or %something% in a compound batch command ()

@ jfl: for the pipe problem, maybe try messing with the FOR /F technique as illustrated in https://stackoverflow.com/questions/4883021/how-to-get-the-output-of-a-command-when-using-microsoft-nmake I have a feeling that https://stackoverflow.com/questions/11170753/windows-command-interpreter-how-to-o...
by MicrosoftIsKillingMe
19 Dec 2017 08:17
Forum: DOS Batch Forum
Topic: using %errorlevel% or %something% in a compound batch command ()
Replies: 11
Views: 3457

Re: using %errorlevel% or %something% in a compound batch command ()

I think that my remaining questions are cleared up in https://ss64.com/nt/errorlevel.html In short, SET ERRORLEVEL creates a distinct entity than DOS errorlevel; if the environment version exists, it takes precedence for expansion; jfl's handy "exit trick" is agreed with; and just use EQU (and NEQ, ...
by MicrosoftIsKillingMe
19 Dec 2017 06:39
Forum: DOS Batch Forum
Topic: using %errorlevel% or %something% in a compound batch command ()
Replies: 11
Views: 3457

Re: using %errorlevel% or %something% in a compound batch command ()

Thanks for that nifty tidbit Dave! Makes perfect sense. BTW my end goal in fact is a .BAT (who likes to type when you can just do everything with foo.bat :) ); I was just trying to save responders a whopping 8 or 10 keystrokes by phrasing the question as such so they would not having to create, run,...
by MicrosoftIsKillingMe
18 Dec 2017 19:27
Forum: DOS Batch Forum
Topic: using %errorlevel% or %something% in a compound batch command ()
Replies: 11
Views: 3457

Re: using %errorlevel% or %something% in a compound batch command ()

Well it turns out that I at least have an answer to the question 1 part. A very simple to understand page covered this https://ss64.com/nt/delayedexpansion.html So if I just do as it directs - setlocal enabledelayedexpansion - use bangs (!) instead of percent signs and voila, the desired sequential ...
by MicrosoftIsKillingMe
18 Dec 2017 18:40
Forum: DOS Batch Forum
Topic: DOSTIPS.COM does not work on XP
Replies: 15
Views: 6531

Re: DOSTIPS.COM does not work on XP

Small corrections regarding my post above (it feels rather late to edit it now) I tested Opera 36 only. Tested many times; it always reports "This site can't be reached. www.dostips.com's DNS address could not be found" The behavior I described on FX 5.0 is worrisome but I was unable to find anythin...
by MicrosoftIsKillingMe
18 Dec 2017 18:20
Forum: DOS Batch Forum
Topic: using %errorlevel% or %something% in a compound batch command ()
Replies: 11
Views: 3457

Re: using %errorlevel% or %something% in a compound batch command ()

Thanks Squashman. So no way to get errorlevel until a subsequent line of the .BAT runs it sounds like. And that %errorlevel% is the errorlevel set by processes(question 2)? And that the item 3 things that some people advise are a waste of time, and DOS version is not a factor in that? I didn't hear ...
by MicrosoftIsKillingMe
18 Dec 2017 14:50
Forum: DOS Batch Forum
Topic: DOSTIPS.COM does not work on XP
Replies: 15
Views: 6531

Re: DOSTIPS.COM does not work on XP

FWIW I am making this reply on XP XP3 32 bit Firefox 5.0, NoScript 2.9 So you may possibly not need to rush to upgrades. Indeed, there are a multitude of LAZY developers (or more likely I.T. policymakers) whose sites neglect to test support of legacy browser versions when they do an upgrade, instead...
by MicrosoftIsKillingMe
18 Dec 2017 14:23
Forum: DOS Batch Forum
Topic: using %errorlevel% or %something% in a compound batch command ()
Replies: 11
Views: 3457

using %errorlevel% or %something% in a compound batch command ()

I'm going to present the question as a command line issuance, with one ampersand, rather than a .BAT file, for your convenience. If you don't have c:\autoexec.bat, adjust the following to be a file that does exist. dir c:\autoexec.bat & echo errorlevel is %errorlevel% 3 questions on the above compou...
by MicrosoftIsKillingMe
11 Dec 2017 10:32
Forum: DOS Batch Forum
Topic: System cannot find path specified
Replies: 2
Views: 1364

Re: System cannot find path specified

That message could refer to either the source or destination being invalid. Are you certain it's the source? Maybe copy "%APPDATA%\Testbat\testbati.txt" c:\GoodDir to assure that, where GoodDir is a directory that you are permitted to copy to. I suggest this because I would bet that the destination ...