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. Get properties of remote file(FTP) vc++

Get properties of remote file(FTP) vc++

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
3 Posts 2 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.
  • C Offline
    C Offline
    chetanjoshi9
    wrote on last edited by
    #1

    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;

    R 1 Reply Last reply
    0
    • C chetanjoshi9

      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;

      R Offline
      R Offline
      Rajkumar R
      wrote on last edited by
      #2

      please post the path you specified for remote file

      C 1 Reply Last reply
      0
      • R Rajkumar R

        please post the path you specified for remote file

        C Offline
        C Offline
        chetanjoshi9
        wrote on last edited by
        #3

        path for ftp file to which I want to get properties ftp://www.ganitra.com//BannerTestPlan\_1.jpg

        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