Remote path validation
-
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?
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()
orShellExecute()
. 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
-
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()
orShellExecute()
. 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
-
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?
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
-
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?
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