The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 path
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ovince

Yugoslavia
Posts

Posted - 10/28/2006 :  03:44:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hi,


I would like to know what is the path of the working directory. I am using this few command lines


string cur_path;
cur_path = Project.GetPath();
printf("current path: %s\n", cur_path);

Unfortunatelly, I am not getting the current path UNLESS the project is not saved in a particular directory. Is it possible to get the working directory path without saving the project.


thanks
oliver


zachary_origin

China
Posts

Posted - 10/28/2006 :  05:40:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Oliver,

If the project is not saved, where do you think would be the project location?
If you meant the folder for Origin application, you can use GetAppPath() function to return the EXE path.


Zachary
OriginLab Technical Services.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000