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. problem with trnasferring a exe file using socket

problem with trnasferring a exe file using socket

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
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.
  • K Offline
    K Offline
    ku19832001
    wrote on last edited by
    #1

    Hello all I am transferring an exe file over a socket to some remote pc. Now the problem is when i run this exe on remote pc, it doesnt work properly. I checked few things like my transfer code which works well (i checked with different file types like .cpp,.txt file and also the size on both side is same). Also i did the file comparision of both the files using DOS command fc.(i sent the file on same pc over socket n did it) and there is no difference in both files. When i run the received file,it gives me a error as "C:\DOCUME~1\....TEMP\. A temporary file needed for initialization could not be written to. Make sure that the directory path exists,and the disk space is available. Choose 'close' to terminate the application" I sm unable to get the error as i m the administrator of the pc and the disk is also not full. Please suggest me a way out of it. thanks kunal s patel

    G 1 Reply Last reply
    0
    • K ku19832001

      Hello all I am transferring an exe file over a socket to some remote pc. Now the problem is when i run this exe on remote pc, it doesnt work properly. I checked few things like my transfer code which works well (i checked with different file types like .cpp,.txt file and also the size on both side is same). Also i did the file comparision of both the files using DOS command fc.(i sent the file on same pc over socket n did it) and there is no difference in both files. When i run the received file,it gives me a error as "C:\DOCUME~1\....TEMP\. A temporary file needed for initialization could not be written to. Make sure that the directory path exists,and the disk space is available. Choose 'close' to terminate the application" I sm unable to get the error as i m the administrator of the pc and the disk is also not full. Please suggest me a way out of it. thanks kunal s patel

      G Offline
      G Offline
      Glich
      wrote on last edited by
      #2

      Did you read the exe file through binary? if(no) { try it; } hope it helps!

      K 1 Reply Last reply
      0
      • G Glich

        Did you read the exe file through binary? if(no) { try it; } hope it helps!

        K Offline
        K Offline
        ku19832001
        wrote on last edited by
        #3

        i used the CreateFile API. In that what flags shud i set. thanks kunal

        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