1.

Solve : .INI with .BAT?

Answer»

Figure of speech. Both are already installed with the operating system. This is a good place to learn about VBScript. Everything from tools, examples and articles.

You can also find a file on your system named script56.chm. This is a compiled help file which serves as a reference for both VBScript and JScript.

You can also post here should you have any problems. Could you upload script56? I don't have it on my computer. (Searched everywhere!)Quote

I don't have it on my computer.

That's odd. What OS are you running?

You can download it here

Good luck. Windows XP Home edition. Probably outdated or it only comes with XP Professional. IDK...Thanks for the link anyways! Now I MIGHT be able to become a vb noob. hypercam, you need to stop asking question after question, and start doing some independent study.
You'd probably be better off trying visual basic with some of the ideas you have. You can download visual basic express for free here. http://www.microsoft.com/express/vb/default.aspx
And a good book about it: http://www.microsoft.com/MSPress/books/12202.aspx
Quote from: HypercamJ on June 17, 2008, 09:12:16 AM
Is there a way to import SETTINGS from an .ini file to use in a batch file? I LOOKED it up on Google but I didn't see anything I was looking for.
use a programming language. eg Python. Sample ini file
Code: [Select][Settings]
%PrNm%=Program name
%Auth%=Author's Name
%PrLc%=Program location

[Drivers]
a = abc.dll
b = efg.ocx
code
Code: [Select]import ConfigParser
config = ConfigParser.ConfigParser()
config.read("file")

print "Program Name ", config.get("Settings", "%PrNm%")
print "Program Location", config.get("Settings", "%PrLc%"),

# dump entire config file
for section in config.sections():
print section
for option in config.options(section):
print " ", option, "=", config.get(section, option)

output:
Code: [Select]c:\test> test.py

Program Name Program name
Program Location Program location Drivers
a = abc.dll
b = efg.ocx
Settings
%auth% = Author's Name
%prlc% = Program location
%prnm% = Program name



Discussion

No Comment Found