Get properties of remote file(FTP) vc++
-
I am working on FTP wizard I written a code to get the properties of selected file for local drive as HTREEITEM hlocalselitem = m_LocaleTreeCtrl.GetSelectedItem(); { CString selectedPath =GetLocalTreePath (hlocalselitem); HWND hwnd = GetSafeHwnd(); SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ; ShExecInfo.hwnd = hwnd; ShExecInfo.lpVerb = "properties"; ShExecInfo.lpFile = selectedPath; ShExecInfo.lpParameters = ""; ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_SHOW; ShExecInfo.hInstApp = NULL; ShellExecuteEx(&ShExecInfo); } which works fine. But when I used it for remote file i.e. selectedpath is different as i.e. using '/' but it is giving me error as please check the path I also tried for complete URL then it gives invalid parameter for ShExecInfo.lpFile = selectedPath;
-
I am working on FTP wizard I written a code to get the properties of selected file for local drive as HTREEITEM hlocalselitem = m_LocaleTreeCtrl.GetSelectedItem(); { CString selectedPath =GetLocalTreePath (hlocalselitem); HWND hwnd = GetSafeHwnd(); SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ; ShExecInfo.hwnd = hwnd; ShExecInfo.lpVerb = "properties"; ShExecInfo.lpFile = selectedPath; ShExecInfo.lpParameters = ""; ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_SHOW; ShExecInfo.hInstApp = NULL; ShellExecuteEx(&ShExecInfo); } which works fine. But when I used it for remote file i.e. selectedpath is different as i.e. using '/' but it is giving me error as please check the path I also tried for complete URL then it gives invalid parameter for ShExecInfo.lpFile = selectedPath;
please post the path you specified for remote file
-
please post the path you specified for remote file
path for ftp file to which I want to get properties ftp://www.ganitra.com//BannerTestPlan\_1.jpg