Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 29th Jul 2003 19:06
If i associate a file with a DBPro program is its directory string passed through the Command line?

And can i get it through CL$?
In our hearts and minds we keep the powers of love, hope and the hidden powers of evil in which we can mold a hero or daemon of ourselves-Book of Enoch Chapter III
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Jul 2003 20:25
The full pathname (including quotes if needed) is passed.

Create an exe with the following code



Then test it
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 29th Jul 2003 20:41
ok, so if i tell it to associate a .dba text file with the compiler it will compile then...no im not doin this i just want to know how it works...so i can implement it into my IDE for certain IDE specific Files it uses...

In our hearts and minds we keep the powers of love, hope and the hidden powers of evil in which we can mold a hero or daemon of ourselves-Book of Enoch Chapter III
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Jul 2003 21:23
Why do that? The only time you *need* an association is to allow you to activate your application by double-clicking the file.

If to compile from your IDE, just call the compiler directly with the source file name.
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 29th Jul 2003 23:01
i want associate files in my IDE, that i made, so that when you double-click them they just move into the IDE and open...yes this is in DBPro...i am proving a point by making it in this...you will see why...

In our hearts and minds we keep the powers of love, hope and the hidden powers of evil in which we can mold a hero or daemon of ourselves-Book of Enoch Chapter III
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Jul 2003 23:23
Next time, I'll read the post properly ...

Yes, make the association of the file type to your IDE. Then when you double-click a file of the associated type, it'll open the IDE that can get the full pathname from CL$()

Ideally though, you'll want to automate the associations. You can use something this:



Either put it into a .reg file and double-click, or run the command 'regedit /s myreg.reg' to load from your program.

Be VERY careful when using this ... in fact, do a backup before you start tinkering with your registry in this way.

Login to post a reply

Server time is: 2026-07-21 21:13:06
Your offset time is: 2026-07-21 21:13:06