Gopal
Gopal

Reputation: 11982

Copying text file

How to copy the text file through vb6 code.

Having Source filename like clock.fin, time.mis, date.fin, so on...,

Having Destination Filename are saving in stroutput.

Stroutput as a string.

I want to give as clock.txt, time.txt, date.txt through code.

FileCopy App.Path & "\Temp\" & Name, App.Path & "\Temp\" & strOutput.txt

Getting error as Invalid qulifier in stroutput.txt

Upvotes: 1

Views: 127

Answers (1)

bobbymcr
bobbymcr

Reputation: 24167

Well, for one thing, the .txt part should be in quotes since it is a string literal.

Upvotes: 2

Related Questions