User forums > Help

File associations on Vista

(1/1)

rjm:

Hello, I would like to use Code::Blocks as my default editor for .txt/.ini etc.. yet when I set this association in Vista or even execute codeblocks.exe examplefile.ini from a command prompt, CB opens to a blank workspace and does not say anything about a file failing to open.

What could be the issue here?

Thanks for reading;
rjm

zabzonk:
Use the --file command line option:

codeblocks --file=somefile.ini

To see a full list of command line options, use:

codeblocks --help

rjm:
when I try your suggestion, it gives me "Unknown long option 'file'" two times in a row, then CB comes up with an empty window with a dialog asking if I want to associate CB filetypes, and after that does nothing, just shows the blank/empty workspace.



--- Quote from: zabzonk on August 21, 2009, 10:37:02 am ---Use the --file command line option:

codeblocks --file=somefile.ini

To see a full list of command line options, use:

codeblocks --help



--- End quote ---

Jenna:
You did not write which version of C::B you use.

That's something very many posters forget. The best way to get an answer that does not really help you.

I guess you use the 8.02 release.
If I remember right the --file parameter came later.

You can try a more recent nightly build or wait for the next release (no, no timeline yet, due to massive code-changes like wxAuiNotebook instead of wxFlatNotebook).

Navigation

[0] Message Index

Go to full version