Thread: Need help in opening a file without specifying its path...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2012
    Location
    Chennai, Tamil nadu, India
    Posts
    30
    Thanks for ur response...!
    Well, its pretty hard for me to understand...
    Quote Originally Posted by Salem View Post
    This should be something like C:\foo\bar\prog.exe
    In which case, you strip off the trailing pathname (giving C:\foo\bar\) and you append image.jpg
    I should move that image.jpg to the folder where the .exe file exist.

    Is that what you meant my "append image.jpg"....???

    Quote Originally Posted by Salem View Post
    This is a series of paths like C:\foo;C:\bar
    Parse this to extract each path in turn, then test to see if C:\foo\image.jpg and C:\foo\prog.exe exist.
    When you find it, you have your answer.
    It shows something like a jung (see that screenshot)..

    Could you please tell me what should I parse, what should I test..??
    How can I code that..? Please please please, tell me in a simple way..
    Attached Images Attached Images Need help in opening a file without specifying its path...-screenshot-5-jpg 

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 11-30-2011, 12:49 AM
  2. a file path problem
    By fighter92 in forum C++ Programming
    Replies: 1
    Last Post: 06-21-2008, 05:50 AM
  3. Getting file name off path
    By cgod in forum C++ Programming
    Replies: 6
    Last Post: 09-22-2005, 10:45 AM
  4. Finding the path of a file
    By caduardo21 in forum C Programming
    Replies: 8
    Last Post: 08-09-2005, 11:00 AM
  5. can .exe find the path to a file?
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 06-12-2002, 01:08 PM