Finding default folder.
Posted: Fri Jun 29, 2012 1:47 pm
Roger,
We are trying to update our app to run under any method user happens to start. For years we have had a mapped drive and specific folder. We do not need or want to change the folder, but the mapped drive is at times a problem if users search for the exe and open using the long server path. We have changed it to also accept this, which works if opened in explorer using the DC_CurPath(). However, if a shortcut is created on the desktop the results is c:\users....., which obviously does not work.
Is there a command to see where the app is loaded on a shortcut, similar to the DC_CurPath(). Cannot find one that works, at least not so far. If not, then I guess we will have to load the long path in our ini startup file.
Thanks, and have a great 4th.
Fred
Omni
We are trying to update our app to run under any method user happens to start. For years we have had a mapped drive and specific folder. We do not need or want to change the folder, but the mapped drive is at times a problem if users search for the exe and open using the long server path. We have changed it to also accept this, which works if opened in explorer using the DC_CurPath(). However, if a shortcut is created on the desktop the results is c:\users....., which obviously does not work.
Is there a command to see where the app is loaded on a shortcut, similar to the DC_CurPath(). Cannot find one that works, at least not so far. If not, then I guess we will have to load the long path in our ini startup file.
Thanks, and have a great 4th.
Fred
Omni