Quoted
If I for instance use the App.Path command in a program, and place that program on a flash drive, or any other drive, shouldn't it yield the path to the folder of the operating program?
Jabaco Source |
|
1 2 3 |
Public Sub Form_Load() Text1.AppendText App.Path End Sub |
It is all there, in the actual version 111.There was one version ( 105 ) where this worked properly. Where was this changed? We might have to go back and study that?
Jabaco Source |
|
1 |
New java#io#File(getClass.getProtectionDomain.getCodeSource.getLocation.toURI.getPath).getAbsolutePath
|
Beginner
Date of registration: Jan 15th 2011
Location: Sarasota, FL
Occupation: Cabinet Design
Hobbies: Programming
Source code |
|
1 2 3 4 5 6 7 8 9 10 11 |
Dim gLP As String Public Sub Form_Load() gLP = App.Path End Sub Public Sub Command1_Click() Text1.Text = gLP End Sub |
This post has been edited 2 times, last edit by "Perry" (Sep 12th 2013, 5:37pm)
C:\DOCUME~1\PERRY~1.ALB\LOCALS~1\Temp
Correction:The App.Path of version 105 is identical to HomeDir.
Jabaco Source |
|
1 2 3 4 5 |
Public Sub Command1_Click() MsgBox "CurDir: " & vbNewLine & CurDir & vbNewLine & vbNewLine & _ "App.Path: " & vbNewLine & App.Path & vbNewLine & vbNewLine & _ "App.JabacoFrameworkPath: " & vbNewLine & App.JabacoFrameworkPath End Sub |
Beginner
Date of registration: Jan 15th 2011
Location: Sarasota, FL
Occupation: Cabinet Design
Hobbies: Programming