CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    9

    How to know file or folder by the path

    Hi friends,


    am using javascript..
    in this i have a path in some variable.
    how can i confirm that path is related to folder path
    or
    that path is related to file path.

    pls cna u halp me by giving example or some way

    thanking you

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: How to know file or folder by the path

    I don't fully understand your question. Are you saying you have a variable and you can't tell if it is pointing to a folder or a file? If this is the case, can't you just look for a file extension?

    You see, JavaScript does not access the filesystem. There is one exception to this. Some versions of IE can. How are you acquiring this variable?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured