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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why Doesn't copy file by shell doesn't work for me?

Status
Not open for further replies.

tedi1

Technical User
Aug 25, 2002
87
0
0
IL
Hi all,

I trying to copy some DLL and OCX file in the begging of my project.
In order to this I use Shell cmd (or command in win 98 & 95) and copy.

This is the command line I'm Writing:
cmd /c copy d:\temp\mswinsck.ocx c:\winnt\system32\mswinsck.ocx

The problem is that it just won't copy the file though if I'm using the command line and I'm writing the exact same line the command works just fine.

Does any one know why?
 
I don't know, but VB has it's own file copying stuff.

Read up on FileCopy

mmilan
 
Thanx mmilan,

Worked like a charm

Tedi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top