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

Head scratching "file not found" 2

Status
Not open for further replies.

thomasmcgeown

Technical User
Feb 6, 2002
27
GB
The following line of code is producing an error 53 file not found - app.path is E:\nettools and the file exists in e:\nettools\vncinstall\ ... any ideas?

runVNCexe = Shell("copy " & Chr$(34) & App.Path & "\vncinstall\winvnc.exe" & Chr$(34) & " " & Chr$(34) & strRemotePush & "winvnc.exe" & Chr$(34), vbNormalFocus)
 

>"I misread your original post, the problem is that visual
>basic cannot recognise the copy command from shell."


For NT machines:
Shell "CMD.Exe /c copy File1_PathAndName File2_PathAndName"

For W9x machines:

Shell "command.com /c copy File1_PathAndName File2_PathAndName"

But, just use FileCopy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top