Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xcopy with _spawn or Create Process

Status
Not open for further replies.

psychomac

Technical User
Jun 8, 2004
1
DE
Hello I want to copy a Directory to hardDisk with my source code; I decide to use xcopy because this tool copies all subdirectories. My Problem is that xcopx does'n work with _spawn _exec or CreateProcess. If I put my comand to am cmd, xcopy works, but it isn't possible for me to use xcopy in my source code. Did anybody knows why?? Or is there an other possibility in C to copy files and Directories???
 
try createprocess with empty string in the first parameter

CreateProcess("", "xcopy....", ...

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top