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.
Forum Post

Re: DOS batch FOR with () files

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...
Forum Post

DOS batch FOR with () files

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...
Forum Post

Re: unable to set variable in DOS batch file

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...
Forum Post

Re: unable to set variable in DOS batch file

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...
Forum Post

Re: unable to set variable in DOS batch file

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...
Forum Post

Re: unable to set variable in DOS batch file

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%"==""...
Forum Post

Re: unable to set variable in DOS batch file

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...
Forum Post

Re: unable to set variable in DOS batch file

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...
Forum Post

Re: unable to set variable in DOS batch file

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.
Forum Post

unable to set variable in DOS batch file

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...
Forum Post

Re: start /wait does not wait for process to finish

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...
Forum Post

start /wait does not wait for process to finish

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...
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.