MS-DOS
MS-DOS is an operating system commercialized by Microsoft. It was the most commonly used member of the DOS family of operating systems and was the dominant operating system for computers during the 1980s.
Application
Any
Language
Any
License
Any
For looping thru files, consider using the FILE-DIRECTORY-LOOP described at http://www.biterscripting.com/LearningScripting/Lesson4.html (Section: 4.1. FILE DIRECTORY LOOP ). You may be able to...
I am a computer dilettante burdened with VISTA64; please be gentle:
For /F "tokens=*" %%a IN ('"dir /-c "%filename%" | find "bytes" | find /v "free""') do @Set summaryout=%%a
This line sets up...
I think I will have to provide more details to make things clear.
I am using IzPack Installer, which is used to package and install java applications on any target computer. Its just a software...
There are two practical ways to pass variables to batch files, either by parameters(%1, %2) or by environment variables(%PATH%, etc.), which is what you seem to be doing. In linux scripts and several...
I think you have got me wrong. I said in my first post that $MYSQL_PATH is an external variable (not belonging to dos). Before my dos batch file is executed this variable is parsed and replaced by...
There a few different ways to do this:
if defined MYSQL_PATH goto isdefined
or:
set MPATH=%MYSQL_PATH%
if defined MPATH goto isdefined
or:
set MPATH=%MYSQL_PATH%
if not "%MPATH%"==""...
Thanks for the reply. That solved my problem. But another problem popped up. Its possible that $MYSQL_PATH won't be defined. So I have to check whether MPATH is empty (null) or not. How do I do that...
Thanks for the reply. That solved my problem. But another problem popped up. Its possible that $MYSQL_PATH won't be defined. So I have to check whether MPATH is empty (null) or not. How do I do that...
Use percent signs to refer to variables and don't put spaces next to the equal sign:
set MPATH=%MYSQL_PATH%
Then you can use echo "%MPATH%" or echo %MPATH% to print it.
I am trying to set a DOS variable like this.
set MPATH = "$MYSQL_PATH"
Here $MYSQL_PATH comes from a different context. The problem is that the variable MPATH never gets set. If I say echo...
I know that in XP (not sure about vista) DOS does not support the wait function on 32-bit win apps, only on 16-bit, so you'll have to find a workaround. My suggestion would be to create a loop to see...
I am having a batch file which installs mysql and other addon's. I start the installation with start /wait command for MYSQL.exe as given below.
start /wait $INSTALL_PATH/Temp1/Server/MYSQL.exe...