Click here to Skip to main content
15,916,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFirewalled 2 Firewalled Connection like Torrent Pin
ffer7-Oct-04 12:09
ffer7-Oct-04 12:09 
Generalpassing object to create linked list Pin
lordmickel7-Oct-04 9:28
lordmickel7-Oct-04 9:28 
GeneralRe: passing object to create linked list Pin
Joaquín M López Muñoz7-Oct-04 9:42
Joaquín M López Muñoz7-Oct-04 9:42 
GeneralRe: passing object to create linked list Pin
lordmickel7-Oct-04 9:57
lordmickel7-Oct-04 9:57 
GeneralPassing parameters to threads Pin
Nikhil Wason7-Oct-04 9:15
Nikhil Wason7-Oct-04 9:15 
GeneralRe: Passing parameters to threads Pin
Joaquín M López Muñoz7-Oct-04 9:50
Joaquín M López Muñoz7-Oct-04 9:50 
GeneralRe: Passing parameters to threads Pin
Anonymous9-Oct-04 15:21
Anonymous9-Oct-04 15:21 
QuestionPossible to write .ini from .bat? Pin
blueSprite7-Oct-04 9:08
blueSprite7-Oct-04 9:08 
OS: win 2000

Is it possible to write to the .ini file from a .bat file?

Here's what I'm trying to do:
I have .bat that is supposed to make the user's life easy by installing our software using a base directory that the user specifies. So the user would execute "installProd.bat C:\user_area" (or Whatever Disk>:\where ever). The .bat creates the directory specifed (as well as others below it) places our C++ executables and our supporting files (like any input data files or help files, etc) into the dirs.

Now I'm hoping to write to the .ini file from within the .bat so I can put the user defined base directory into the .ini. Then when the C++ executables run, the executables can access the .ini file for the base directory path (using GetPrivateProfileSettings or GetProfileString etc).

Is it possible? Or am I going down the wrong path for this? ANy suggestions and guidance is much appreciated!

Thanks,
Rose | [Rose] blueSprite

AnswerRe: Possible to write .ini from .bat? Pin
Joaquín M López Muñoz7-Oct-04 9:59
Joaquín M López Muñoz7-Oct-04 9:59 
AnswerRe: Possible to write .ini from .bat? Pin
pbloechl7-Oct-04 10:00
pbloechl7-Oct-04 10:00 
AnswerRe: Possible to write .ini from .bat? Pin
blueSprite7-Oct-04 10:34
blueSprite7-Oct-04 10:34 
GeneralMFC fails to create main CFrameWnd Pin
Vaclav7-Oct-04 8:17
Vaclav7-Oct-04 8:17 
GeneralRe: MFC fails to create main CFrameWnd Pin
David Crow7-Oct-04 9:05
David Crow7-Oct-04 9:05 
GeneralRe: MFC fails to create main CFrameWnd found casue - now what? Pin
Vaclav8-Oct-04 10:16
Vaclav8-Oct-04 10:16 
QuestionHow to inlude files,getting link error! Pin
Dani1000017-Oct-04 7:11
Dani1000017-Oct-04 7:11 
AnswerRe: How to inlude files,getting link error! Pin
Rage7-Oct-04 7:42
professionalRage7-Oct-04 7:42 
AnswerRe: How to inlude files,getting link error! Pin
Rage7-Oct-04 7:46
professionalRage7-Oct-04 7:46 
GeneralRe: How to inlude files,getting link error! Pin
Dani1000017-Oct-04 8:00
Dani1000017-Oct-04 8:00 
GeneralRe: How to inlude files,getting link error! Pin
David Crow7-Oct-04 9:07
David Crow7-Oct-04 9:07 
Questioncan i use %windir% to get windows directory??? Pin
venadder7-Oct-04 6:54
venadder7-Oct-04 6:54 
AnswerRe: can i use %windir% to get windows directory??? Pin
Rage7-Oct-04 7:33
professionalRage7-Oct-04 7:33 
GeneralEmbedding a dialog from dll in main program's splitter View and doing data exchange in dll Pin
kumar_gaurava7-Oct-04 5:39
kumar_gaurava7-Oct-04 5:39 
GeneralImpersonation Pin
Per Nilsson7-Oct-04 4:42
Per Nilsson7-Oct-04 4:42 
GeneralRe: Impersonation Pin
toxcct7-Oct-04 4:48
toxcct7-Oct-04 4:48 
GeneralRe: Impersonation Pin
Rage7-Oct-04 7:55
professionalRage7-Oct-04 7:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.