recentpopularlog in

kme : dos   46

WordPerfect - Wikipedia |
At the height of its popularity in the 1980s, it was a dominant player in the word processor market, partly because of extensive, no-cost support, with "hold jockeys" entertaining users on hold.
wordprocessing  dtp  dos  thewaythingswere  techsupport 
november 2017 by kme
Batch files - Errorlevels
In Windows NT 4/2000/XP this may sometimes fail, since some executables return negative numbers for errorlevels!
However, this can be fixed by using the following code to check for non-zero return codes:
Use the code above wherever you would have used IF ERRORLEVEL 1 ... in the "past".
dos  batchscripting  scripting  annoyance  windows  sysadmin  errorhandling  solution 
may 2016 by kme
How can I exit a batch file from within a function? - Stack Overflow
The 'exit /b' doesn't seem to be required, but this does work.

call :haltHelper 2> nul

exit /b
dos  scripting  batchscripting  wtf  windows  solution 
may 2016 by kme
HowTo: UNIX / Linux Convert DOS Newlines CR-LF to Unix/Linux Format
Type the following command to convert file called myfile.txt:
<code class="language-bash">$ unix2dos myfile.txt
$ unix2dos -b myfile.txt</code>

Task: Convert Dos TO Unix Using tr Command
<code class="language-bash">tr -d '\r' < input.file > output.file</code>

Task: Convert Dos TO Unix Using Perl One Liner
<code class="language-bash">perl -pi -e 's/\r\n/\n/g' input.file</code>
textprocessing  conversion  howto  unix  dos  lineends  whitespace 
april 2016 by kme
cmd - Can I mask an input text in a bat file - Stack Overflow
Best solution: use a Powershell one-liner as a shim to get masked input
@echo off
@echo off
set "psCommand=powershell -Command "$pword = read-host 'Enter Password' -AsSecureString ; ^
$BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
for /f "usebackq delims=" %%p in (`%psCommand%`) do set password=%%p
echo %password%

Alternate solution (you'll need if >= Win7):
@echo off
:: GetPwd.cmd - Get password with no echo.
<nul: set /p passwd=Password:
for /f "delims=" %%i in ('cscript /nologo GetPwd.vbs') do set passwd=%%i
:: This bit's just to prove we have the password.
echo %passwd%

The "<nul: set /p passwd=Password: " is somewhat sneaky - the effect of the command is to output the prompt with no trailing newline character - it's a sneaky way to emulate the "echo -n" command from the bash shell. It sets passwd to an empty string as an irrelevant side effect and doesn't wait for input since it's taking its input from the nul: device.

PowerShell solution:
@echo off
set "psCommand=powershell -Command "$pword = read-host 'Enter Password' -AsSecureString ; ^
$BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
for /f "usebackq delims=" %%p in (`%psCommand%`) do set password=%%p
echo %password%
windows  vbscript  powershell  dos  batchfile  batch  scripting  tipsandtricks  passwordprompt  authentication  solution 
october 2014 by kme
The CD Forum > Error 8: Ther Is Not Enough Memory Available
I have dealt with this one a lot. The simpest fix is to load the basic network redirector.
I did this by changing all the lines containing:
msclient  dos  autoexec.bat  freedos  solution 
july 2014 by kme
Hard Disk Sentinel - DOS version
The Vantec PATA/SATA->USB adapter is detected as "VID: 152D, PID: 2338 JMicron 20337 SATA+IDE adapter" and supported by this tool.
freedos  bootdisk  diagnostic  storage  harddrive  dos  bootable  systemmonitoring  smart 
may 2013 by kme
FreeDOS bootable USB Flash Drive « EdgeNotes
I had to get the fat32lba.bin from the FreeDOS 1.0 "" in order to make the instructions at work. The SYSLINUX instructions at that page worked fine, except the MBR was SYSLINUX's and the FreeDOS fat32lba.bss was chain-loaded at boot time.
usb  bootable  freedos  dos  bootdisk  solution 
may 2013 by kme
FreeDOS 1.1 Bootable USB Image | Joe's Blog
Complicated. Uses Qemu to install the whole FreeDOS installation to a virtual disk image, then 'dd' to flash it to the USB stick.
freedos  usb  bootdisk  bootable  dos  maybesolution 
may 2013 by kme USB - freedos
These instructions apply to FreeDOS 1.0; the "" file mentioned below can be obtained directly from, and everything else seems to work fine.

dos  bootdisk  usb  freedos  solution 
may 2013 by kme

Copy this bookmark:

to read