Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Remote path validation

Remote path validation

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gokul_md
    wrote on last edited by
    #1

    hi how to validate a given directory path ( in a remote machine whether the path is valid or not) in vc++? and also how to execute a dos command in MFC?

    D 1 Reply Last reply
    0
    • G Gokul_md

      hi how to validate a given directory path ( in a remote machine whether the path is valid or not) in vc++? and also how to execute a dos command in MFC?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Gokul_md wrote:

      how to validate a given directory path ( is valid or not) in vc++?

      How about PathIsDirectory()?

      Gokul_md wrote:

      how to execute a dos command in MFC?

      Like you would anything else, use CreateProcess() or ShellExecute(). However, some DOS commands have an equivalent API (e.g., dir, copy).


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      G 1 Reply Last reply
      0
      • D David Crow

        Gokul_md wrote:

        how to validate a given directory path ( is valid or not) in vc++?

        How about PathIsDirectory()?

        Gokul_md wrote:

        how to execute a dos command in MFC?

        Like you would anything else, use CreateProcess() or ShellExecute(). However, some DOS commands have an equivalent API (e.g., dir, copy).


        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

        "Judge not by the eye but by the heart." - Native American Proverb

        G Offline
        G Offline
        Gokul_md
        wrote on last edited by
        #3

        Hi This is only working for local directories. Not for remote shared path validation. how to check the remote machine shared directory path is valid or not?

        D T 2 Replies Last reply
        0
        • G Gokul_md

          Hi This is only working for local directories. Not for remote shared path validation. how to check the remote machine shared directory path is valid or not?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Is PathIsUNC() any better?


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          1 Reply Last reply
          0
          • G Gokul_md

            Hi This is only working for local directories. Not for remote shared path validation. how to check the remote machine shared directory path is valid or not?

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            Gokul_md wrote:

            This is only working for local directories. Not for remote shared path validation. how to check the remote machine shared directory path is valid or not?

            PathFileExist

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And you

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups