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

About "COPY FILE"

Status
Not open for further replies.

cslawtom

MIS
Sep 3, 2001
161
HK
Dear All,

I met the following situation:

Using COPY FILE ABC.DOC TO C:\ABC.DOC

The file name of the destination is always in small capital letter that is abc.doc

Is it possible to change it to capital letters? or might be this is the problem of the computer? please kindly advise.
 
This seems to be normal in Win XP.
Only if you rename with the explorer you can change this.

Rob.
 
You could use the API:

DECLARE INTEGER CopyFile IN kernel32;
STRING lpExistingFileName,;
STRING lpNewFileName,;
INTEGER bFailIfExists

Use it like:

? CopyFile ("ABC.DOC", "C:\ABC.DOC", 0)

or

= CopyFile ("ABC.DOC", "C:\ABC.DOC", 0)
or whatever you want like:

? CopyFile ("ABC.DOC", "C:\AbC.DoC", 0)

Rob.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top