Skip to main content

Posts

Showing posts with the label cmd

MS-DOS and INI file

I came into a requirement where I had to separate a DOS batch file and move all the variable and user specific setting into a separate file. So here is the solution: I created a new INI config file and declared my available in it. MyINIFile.ini UserName=MyUserName Datapath=C:\data ServerName=MyServer Here is how I am calling the INI file inside the batch file. MyBatchFile.bat FOR /F "tokens=1,2 delims=^=" %%A IN (MyINIFile.ini) DO (SET %%A=%%B ) ECHO %Datapath% ECHO %ServerName%

unable to open WMP, windows 7

I had this problem few days back. My WMP and WMC suddenly stop working. I was not able to open it. My sound drivers were working fine. Then I found this solution, this might help you too, if you have same issue. To resolve this: 1. Open cmd.exe is Admin mode. 2. type "regsvr32.exe jscript.dll". 3. type "regsvr32.exe vbscript.dll". 4. exit. Try now. I should work :)