ms-dos

Batch file to wait for other program to load/initialize, then execute command?

I need some assistance writing what should be a fairly basic .BAT file. I load my main program, but that program takes ~20secs to load and be initialized. I have another command-line API I can execute to interact with this above program, but obviously until the above program is loaded and initialized there's no point in trying. If the...

Converting Dos Command to Power Shell command.

I am working with PowerShell 2.0 with Psake 1.4 Here is the dos command that is running that I want to convert to PowerShell. "C:\Program Files\Borland\StarTeam 2005 R2\stcmd.exe" co -p "rubble.barney:dinno@HostName:4455/MySolution/WebApp" -is -fp "D:\FooBar\MySolution\Source" Notice that the path to stcmd has a space in it Notice ...

How can I obtain time of day without DATETIME, CURRENT or TIME?

INFORMIX-SQL 2.10.06E (DOS 6.22): This is one of the legacy version of isql that runs in pure DOS, but didnt have support for DATETIME or CURRENT! However the ace report writer has the 'time' keyword constant which returns the time of day from the system clock in military format "hh:mm:ss". I could never understand why RDS (in those day...

Run the last executed command in dos prompt

HI, when using unix i use to type !! to run the last executed command. how could i do the similar kind of operation on dos prompt on windows? ...

Make a 'press any key' routine that is compatible with redirected standard input

I've got a C/C++ program that runs in a console window, and prompts the user to press any key to continue, or 'q' to quit. It currently uses _kbhit() to detect if a key has been pressed, and then uses _getch() to determine what character it was. Now I want to be able to automate this program (from a C# app using a Process with RedirectS...

DOS/16M: Error message [6] Not enough memory loading INFORMIX-SE 4.10.DD6 engine.

INFORMIX-SE 4.10.DD6 on DOS 6.22 ((DOS16M=3): I'm trying to run a protected mode Informix-SE engine executable but im getting the error message described in the title of this post. DEVICE=C:\DOS\HIMEM.SYS is the first entry in my CONFIG.SYS and MEM.EXE says I have 616K of REAL MEM available. I'm using using DOS16M switch = 3 and the exe...

INFORMIX-SQL (SE) 4.10DC1 Protected Mode problem loading PSTARTSQL.EXE

I am attempting to fire up ISQL 4.10DC1 on MS-DOS 6.22, but cant seem to get PSTARTSQL.EXE to load, it says DOS16M Error[6]: Not enough memory.. I have DEVICE=C:\DOS\HIMEM.SYS as my first line in CONFIG.SYS and properly set all environment variables, including DOS16M=3. Anyone have any experience with this version of ISQL?..Does anyone h...

Does anyone have INFORMIX-SQL 4.10DC1 or DD6 for MS-DOS?

If you do, I'm looking for documentation pertaining to installation settings and DOS protected mode troubleshooting. I'm getting a DOS/16M: Error [6] Not enough memory to load PSTARTSQL.EXE (protected mode SE engine). Any help would be greatly appreciated! ...

How do I send an email from a DOS batch command?

I have a batch file in DOS that does some checking and I need to fire off an email when its done. I've found a few solutions on the interwebz but most of them are 3rd party or just simply open up a new message in Outlook. I need the command to send an email in its entirety without any human interaction. We use MS Exchange here, if that ...

How do I fix this BASIC compilation error?

I have a problem compiling a program I made in BASIC. It's a DOS simulator that I was making in attempts to see if it is posssible to write an operating system entirly in BASIC. Every time I try to compile, I get these messages: !SYNTAX ERROR IN LINE 15, COLUMN 50 UNEXPECTED E EXPECTING : OR END OF LINE What do I change to sovle thi...

How to exit a batch program upon error?

I've got a batch file that does several things. If one of them fails, I want to exit the whole program. For example: @echo off type foo.txt 2>> error.txt >> success.txt mkdir bob If the file foo.txt isn't found then I want the stderr message appended to the error.txt file, else the contents of foo.txt is appended to success.txt. Basic...

How to move output file in dos

I would like to create a batch file which will move the output file of a custom command "mdmg C:\source i5". I must execute this command from the C:\home directory where the mdmg.cmd resides. This command converts the any file in the source dir and creates an output files in the C:\home folder. However I want to move the output files...

Use all RAM memory in MS-DOS

How can I access more than Conventional and Extended memory? ...

What are the difference between MS-dos FAT32 format and windows FAT32 format

What are the difference between MS-dos FAT32 format and windows FAT32 format? ...

How to copy mdb file to another location through command prompt?

Hello- I'm seeking the DOS syntax to copy a access database from lets say Z:\Data\Test.mdb to C:\Temp How can I do this? many thanks. ...

How to use wildcard in Windows command-line?

I some animations, they are like this: /OP/ /OP/OP1/ /OP/OP1/OP1.rmvb /OP/OP2/ /OP/OP2/OP2.rmvb /OP/OP3/ /OP/OP3/OP3.rmvb /OP/OP4/ /OP/OP4/OP4.rmvb ...and more I want to make it like /OP/ /OP/OP1.rmvb /OP/OP2.rmvb /OP/OP3.rmvb /OP/OP4.rmvb I tried move \OP\*\*.rmvb \OP It gave me error says ...

How to get a list of sub-folders and their files, ordered by folder-names

Can I use "dir" command-line to get a list of sub-folders and their files, ordered by folder-names, and not just file-names ? using dir /s/b/o:gn > f.txt I first get all sub-folders and only then all sub files, e.g.: d:\root0\root1\folderA d:\root0\root1\folderB d:\root0\root1\file00.txt d:\root0\root1\file01.txt d:\root0\ro...

alias DOS command for runas

I'd like to be able to alias a dos command to use in conjunction with the runas command specifically I'm tired of getting the full path to BIDS ("C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"), and I'd like to alias like MS has done for ssms. Anyone know how to do this? I know I can accomplish this with a batch ...

Change attributes of a group of files in MS-DOS

The MS-DOS command attrib changes the attributes of a single file. How can I use it to change the attributes of a group of files? ...

PHP not recognized on Windows

Hello there, I am trying to install symfony php framework. I am working with windows. My apache & php stuff is under C:\wamp The framework is under C:\dev\ I am trying to do something like this in ms-dos: c:\> php lib\vendor\symfony\data\bin\symfony -V The php command isnt recognized. I suppose this is a pretty simple issue, but ...