opening file in another folder?

I know this may sound fairly retarted, though my app keeps getting an error when I do so. I can open the file if it's in the same folder but I can't do it if it's in a child folder.

Example :

Same Folder ->
 
System::Diagnostics::Process::Start("NoEdge.reg");


That works just fine but I can't open it in another folder I placed inside the folder the app is located in...

Example :

Child Folder ->
 
System::Diagnostics::Process::Start("/Registry/NoEdge.reg");
"/Registry/NoEdge" would be a folder off the root folder for the current drive named "Registry" not a subdirectory of the working folder (unless the working folder is the root folder)

Registry is a child folder in the root folder of the app, the action stated opens a registry script in that folder. I'm wondering why it won't open off "/Registry/NoEdge.reg".
I don't know what "root folder of the app" means. Applications don't contain folders as those are handled by the underlying OS. If you want to remove confusion then go with a fully qualified path ("C:\\My Folder\\My Subfolder\\My File.txt"). If you want to open a file in a subdirectory of the working directory then you need "My Subfolder\\My File.txt" (assuming your working directory is "My Folder"). If you add a slash in the front it defaults to the root directory of the working drive (in my example "C:\") Also if you are *nix and not windows then just ignore the \\ and go with /
App as in application, let me try and clarify a bit, I'm bad at explaining :

My project is in the same folder as the child folder I want to open the registry script from. The registry script is in a folder I named Registry. I want to open NoEdge.reg from the project itself, but when I try to open it from the trainer using
 
System::Diagnostics::Process::Start("/Registry/NoEdge.reg");

I get an error, but when I move the file into the same exact folder as the application and use
 
System::Diagnostics::Process::Start("NoEdge.reg");

It opens just fine. What I want to know is how to open NoEdge.reg if it's in a child folder placed inside the folder my project is in. I've tried what you stated Texas but it didn't seem to work :

If you want to remove confusion then go with a fully qualified path ("C:\\My Folder\\My Subfolder\\My File.txt"). If you want to open a file in a subdirectory of the working directory then you need "My Subfolder\\My File.txt" (assuming your working directory is "My Folder"). If you add a slash in the front it defaults to the root directory of the working drive (in my example "C:\") Also if you are *nix and not windows then just ignore the \\ and go with /
Figured it out, I just wasn't complying what Texas stated correctly.
Topic archived. No new replies allowed.