Im using sendemail in a batch file. At the end of sending an email it replys with a message of succses or failure. For example
Jan 10 00:46:54 villa sendemail[456]: Email was sent successfully!
Is it possible to capture this message into a variable for processing?
Thx
...
I write a simple program, to run in DOS mode. Everything works under emulated console in Win XP / Vista / Seven, but not in DOS. The error says: this program caonnot be run in DOS mode. I wonder is that a problem with compiler flags or something bigger.
For programming i use Code::Blocks v 8.02 with such settings for compilation:
-Wall...
I'm trying to use the 'net use' command to map a drive from a Windows XP Embedded system(built using Target Designer), but when I try to execute the 'net use' command, it is un-recognized. The command works great on my desktop WinXP machine, just not on the embedded system. I'm not sure if we are missing a package that needs to be on t...
This is my code so far:
for /f "tokens=1 eol=," %%f IN ("1,2,3,4") do (
echo .
echo %%f
)
I'm expecting that to produce:
.
1
.
2
.
etc...
But instead I get:
.
1
And that's it. What am I missing?
...
what is the difference between a.bat, a.com and a.exe extensions?
...
Hi Everyone,
I'm creating a batch file for SharePoint deployment. The batch will do solutions installation and configuration, create a web application and restore the .dat file on the created web application.
Instead of hard code the solutions path and .dat I want batch to know it is on the root. So, if I move this folder somewhere els...
and are the common commands like "cd.." of the same language as batch processes that can be programmed in MS-DOS? cheers.
...
I'm emulating MS-DOS 6.22 with PocketDOS, but I want to develop for Palm OS on it, then I want to know if I can run prc-tools or any other compiler for Palm OS on it.
...
Is there a way to find a file on the C: of a computer , using a DOS command, without having to CD to the root of the C: drive? I would like to do it using the DIR and the FINDSTR command only.
Ultimately, my goal is to search for a file and then store the parent directory name in a ENV variable without changing directories and hopefu...
Hello,
I need to find the name of the parent directory for a file in DOS
for ex.
Suppose this is the directory
C:\test\pack\a.txt
I have a script which asks me the file name
C:\\>getname.bat
enter file name: c:\test\pack\a.txt
now the script should return just the parent name of the file.
pack
and NOT the ...
Hi,
I'm trying to install this fossil in DOS 6.22, which is running in Microsoft Virtual PC 2007. I'm hoping that some of you veteran Oracle developers have any recollection of in what order do these diskette images need to be loaded, since I don't have any documentation available for 6.0.33.
A friend emailed me the following 720K di...
I have multiple websites set up in the same folder, and I want to create a batch file that will delete the cache in each of them without having to add a new line for each site. For example I am using this:
del /S /Q D:\www\site-name\cache\*
Which works, but I have to add a new line for every site in D:\www. The del command doesn't sup...
I need to execute a command 100-200 times, so far my research indicates that I would either have to copy paste 100 copies of this command, OR use a FOR loop, but the for loop expects a list of items, hence I would need 200 files to operate on, or a list of 200 items, hence defeating the point.
I would really not have to write a C progra...
Hi all,
An open question - but I cant find anywhere to start!!
I want to compile a "Hello World" MS-DOS exe.
Not a program that runs in XP 16bit mode, or in MSDos mode on top of Windows OSs.
A HELOWRLD.EXE that I can run on my MSDOS box.
Thanksyou!
...
Hi All,
I am trying to run a console C++ application linking with my DLL files from the command prompt in a XP windows machine. Recently I have started getting "This program cannot be run in DOS mode." as an error message. As I understand this is a filler message in all DLL's to print if this exe was invoked in a pure MS-DOS environment...
I'm trying to execute MS-DOS DEL commands inside a Win32 C program, and I already know that system and popen can be used for this. However, the problem is that both require string literals (type const char) for the commands, and I need something like the DOS equivalent of this Perl code (more or less, don't know if it actually works):
m...
I have lots of experience of writing php scripts that are run in the context of a webserver and almost no experience of writing php scripts for CLI or GUI output.
I have used the command line for linux but do not have much experience with DOS.
Lets say I have php script that is:
<?php
echo('Hello world');
for ($idx = 0 ; $idx < 100 ;...
I was wondering how such performance can be achieved on windows as I noticed snowberd is even faster than DOS "dir" command, even in mapped network drives...?
Any idea what algo/technology are used to get such fast directory browsing...?
...
In what language was MSDOS originally written in?
The Wikipedia Article implies either C, QBasic or Pascal, but:
C was invented to write UNIX, so I don't believe it was used to write MSDOS
Pascal seems popular to teach programming, but not really popular to write Operating systems in
QBasic didn't seem to be very popular for Operating...
I have a build.bat file which uses %1 internally... so you might call:
build 1.23
I wanted it to read the parameter from a separate file, so I tried putting "1.23" in version.txt and doing:
build < version.txt
But it doesn't work. Isn't this how piping works? Is what I want possible and if so how?
...