Search found 55 matches
- 22 Dec 2017 02:24
- Forum: DOS Batch Forum
- Topic: How to measure total and free environment space? (XP SP3)
- Replies: 5
- Views: 4792
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...
- 19 Dec 2017 11:30
- Forum: DOS Batch Forum
- Topic: using %errorlevel% or %something% in a compound batch command ()
- Replies: 11
- Views: 9419
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...
- 19 Dec 2017 08:17
- Forum: DOS Batch Forum
- Topic: using %errorlevel% or %something% in a compound batch command ()
- Replies: 11
- Views: 9419
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, ...
- 19 Dec 2017 06:39
- Forum: DOS Batch Forum
- Topic: using %errorlevel% or %something% in a compound batch command ()
- Replies: 11
- Views: 9419
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,...
- 18 Dec 2017 19:27
- Forum: DOS Batch Forum
- Topic: using %errorlevel% or %something% in a compound batch command ()
- Replies: 11
- Views: 9419
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 ...
- 18 Dec 2017 18:40
- Forum: DOS Batch Forum
- Topic: DOSTIPS.COM does not work on XP
- Replies: 15
- Views: 17077
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...
- 18 Dec 2017 18:20
- Forum: DOS Batch Forum
- Topic: using %errorlevel% or %something% in a compound batch command ()
- Replies: 11
- Views: 9419
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 ...
- 18 Dec 2017 14:50
- Forum: DOS Batch Forum
- Topic: DOSTIPS.COM does not work on XP
- Replies: 15
- Views: 17077
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...
- 18 Dec 2017 14:23
- Forum: DOS Batch Forum
- Topic: using %errorlevel% or %something% in a compound batch command ()
- Replies: 11
- Views: 9419
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...
- 11 Dec 2017 10:32
- Forum: DOS Batch Forum
- Topic: System cannot find path specified
- Replies: 2
- Views: 3631
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 ...