Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
DOS Programming
Name: hharding Date: December 11, 2003 at 14:33:14 Pacific OS: WIN2K CPU/Ram: Enough
Comment:
How do I subtract one day from the day variable "dd" below?
for /f "tokens=2" %%i in ('date /t') do set thedate=%%i SET mm=%thedate:~0,2% SET dd=%thedate:~3,2% SET yy=%thedate:~8,2%
I also need a good site that shows you how to program in DOS.
Name: Wengier Date: December 11, 2003 at 19:03:51 Pacific
Reply:
In fact, there is not even Virtual DOS Machine (VDM) in this case. He is actually in pure "NT Command Prompt" (a.k.a. WinNT Console), similar to "OS/2 Command Prompt". *Only when* the user is trying to run a DOS program (e.g. by typing "MEM /D" in the NT Console), then WinNT/2K/XP will automatically call NTVDM.exe (NT Virtual DOS Machine) to run the specified DOS program in the NT Console. If you rename or delete the file NTVDM.exe in %windir%\SYSTEM32, then you will only be able to run WinNT Console programs (like CMD.EXE), not DOS programs any more.
0
Response Number 3
Name: dtech10 Date: December 12, 2003 at 13:42:48 Pacific
Reply:
Hi hharding
You could subtract 1 day from the "dd" variable like this, but it won't always be tomorrow's date. But you could always use other operators to calculate the month and last day of month. I'll work on this one, and post back.
rem Var DD -1 set /a dd=%dd%-1
Below is an interesting site your might help with calulating tomorrows date. How this helps. Harry
http://www.robvanderwoude.com/index.html
0
Response Number 4
Name: bitbyte Date: December 12, 2003 at 15:29:41 Pacific
Reply:
my datetime.com program can sub and add days/months to a date
download at http://plop.at look to the example del files older than 2 days
Summary: This looks like the infamous Runtime200 error that some DOS programs throw up when run on pc's faster than 300mhz (or thereabouts). Try using the slow-down util MOSLO on it. http://www.hpaa.com/moslo/...
Summary: I am running a DOS program that allows you to connect to piece of weather collecting equipment via a modem. This software allows connection to the device via a drop-down menu. This connection needs to...
Summary: I have sent you a detailed description of what you asked for by e-mail that looks something like this!!! get dos 5.0 or later from someone......boot to a: with the dos #1 disk in the a: drive if the d...