Link to home
Start Free TrialLog in
Avatar of ChirsJB
ChirsJB

asked on

CurDir not pointing to directory

When I exit a form and go back to the calling form CurDir drops the directory path and only points to the drive.  The exited (unloaded) form contains a DriveListBox, DirListBox, and FileListBox and I don't know if that has anything to do with the problem.  How can I reset the CurDir to show the directory path that the program is running in and not just the drive?
ASKER CERTIFIED SOLUTION
Avatar of AnswerTheMan
AnswerTheMan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ChirsJB
ChirsJB

ASKER

Do have any idea why this happends with curdir?
curdir is giving you VB ddirectory while running from within VB, and last directory used when running the EXE.
App.Path will always return the Application Path
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
https://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange