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. command line instructions

command line instructions

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 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
    chetan210183
    wrote on last edited by
    #1

    Hi Everyone, How can we write the commandline instructions in VC++? For example, i want to copy Excel file from one location to another location in another place(LAN). I have a copy button in my dialog. When i press the copy button, the excel file should be copied over to another location. Is it possible to do so? Thanks in Advance. Chetan. Helping others satisfies you...

    T 1 Reply Last reply
    0
    • C chetan210183

      Hi Everyone, How can we write the commandline instructions in VC++? For example, i want to copy Excel file from one location to another location in another place(LAN). I have a copy button in my dialog. When i press the copy button, the excel file should be copied over to another location. Is it possible to do so? Thanks in Advance. Chetan. Helping others satisfies you...

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      system() if you directly use DOS commands. otherwise, use CopyFile()

      C 1 Reply Last reply
      0
      • T toxcct

        system() if you directly use DOS commands. otherwise, use CopyFile()

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

        Thank you. Is it possible to copy a file from one computer to other computer in a LAN using CopyFile(). Chetan. Helping others satisfies you... -- modified at 5:10 Wednesday 22nd March, 2006

        T 1 Reply Last reply
        0
        • C chetan210183

          Thank you. Is it possible to copy a file from one computer to other computer in a LAN using CopyFile(). Chetan. Helping others satisfies you... -- modified at 5:10 Wednesday 22nd March, 2006

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          looking at the MSDN[^], i think so what you have to do for that is prepend the file name with _\\\_...

          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