1.

Solve : Bepalen van active directory om mee te geven aan op te starten applicatie?

Answer»

Ik start een accessdatabase op via een test.cmd file met oa. de volgende regel:
"C:\Program Files\Microsoft Office\Office\msaccess.exe" c:\test\mijndb.mdb

De test.cmd file STAAT in de zelfde directory als de database file.

Nu wordt de gehele test directory gecopieerd en op een gebruikers PC gezet, maar in een andere directory. Deze directory is afhankelijk van de gebruiker steeds anders.

Is er een mogelijkheid om erachter in welke directory de opgestarte test.cmd file staat en dit dan op te nemen in de padnaam bij de op te starten database?

Dus zoiets als:
cp = active direcory
"C:\Program Files\Microsoft Office\Office\msaccess.exe" {cp}\mijndb.mdbThis is an English speaking forum salonkorf.
I SUGGEST you either translate your post to English or find a Dutch? speaking forum.Quote

[/Google translated :
I started a accessdatabase at a test.cmd file with eg. The following line:
"C: \ Program Files \ Microsoft Office \ Office \ msaccess.exe" c: \ test \ mijndb.mdb

The test.cmd file is in the same directory as the database file.

Now the entire test directory and copied to a PC users PUT, but in a different directory. This directory is dependent on the user always different.

Is there a possibility of knowing to what directory the file is initiated and test.cmd it to be included in the pathname to the database to start?

So SOMETHING like:
CP = active direcory
"C: \ Program Files \ Microsoft Office \ Office \ msaccess.exe" cp) (\ mijndb.mdbQuote

This is possible; assume the name of the folder has the name of the user which is held in the %USER% variable. As Access will be registered, you should only need to do this
Start "C:\Documents and Settings\%USER%\MyDatabase\mijndb.mdb"

Good luck
Graham

Quote
Dit is mogelijk; veronderstellen dat de naam van de map is de naam van de gebruiker die wordt gehouden in de% USER% variabel. ZOALS Toegang zal worden geregistreerd, moet u alleen nodig om dit te doen
Start "C:\Documents and Settings\%USER%\MyDatabase\mijndb.mdb"

Good luck
Graham
Where's Raptor when we need him ? ?


Discussion

No Comment Found