1
Friends, I decided to simplify the use of a system in Delphi
, using the banco de dados
and the executable available in a pen drive
.
With that, I have my tables on Access
, and arranged in a DataModule
with ADOQuery
, with connection aligned with the drive E:
, for example.
It happens that when I plug the drive into another pc it won’t always recognize this pen drive as "E:"
, can automatically set another letter. I know how to change the letter by windows but if you have restricted access to this feature, it gets complicated.
So I want to insert a Combobox
that allows you to adjust my program with the letter that is indicated on the pc of use, or even to program the recognition and adjustment automatically as soon as initialized.
I count on the help of colleagues, if possible. Grateful.
Any problems using the path the executable is in? For example using
Paramstr(0)
andExtractFileDrie
? (http://docwiki.embarcadero.com/Libraries/en/System.SysUtils.ExtractFileDrive)– EMBarbosa