tris
10-04-2001, 03:43 AM
Heres the deal.
I am using the following code to copy a file from my application directory to watever location is stored in a string variable called copy_to_path. At the moment, i have hardcoded the value of this string to the desktop.
Dim Copy_To_Path As String
Copy_To_Path = "C:\WINDOWS\Desktop\NorthwestNews.prc"
FileSystem.FileCopy App.Path & "\..\northwestNews.prc", Copy_To_Path
Exit Sub
What i need to do is find the directory for a specific program.
In this case, i need to find where a program called 'Palm Desktop' has been installed, so that the .prc file is copied into the 'Palm Install Directory'.
Therefore, does anyonme know how to find the location of a program or possible how to find a full pathname using only a part of one e.g \Palm\Install
Hope this isnt too confusing, but i am a little confused abaout the whole thing myself!
Tris
<font color=blue>Only one thing in life is certain - you won't get out of it alive </font color=blue> images/icons/cool.gif
I am using the following code to copy a file from my application directory to watever location is stored in a string variable called copy_to_path. At the moment, i have hardcoded the value of this string to the desktop.
Dim Copy_To_Path As String
Copy_To_Path = "C:\WINDOWS\Desktop\NorthwestNews.prc"
FileSystem.FileCopy App.Path & "\..\northwestNews.prc", Copy_To_Path
Exit Sub
What i need to do is find the directory for a specific program.
In this case, i need to find where a program called 'Palm Desktop' has been installed, so that the .prc file is copied into the 'Palm Install Directory'.
Therefore, does anyonme know how to find the location of a program or possible how to find a full pathname using only a part of one e.g \Palm\Install
Hope this isnt too confusing, but i am a little confused abaout the whole thing myself!
Tris
<font color=blue>Only one thing in life is certain - you won't get out of it alive </font color=blue> images/icons/cool.gif