Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Aug : xcopy
| Subject: | xcopy |
| Posted by: | "Jacob Havkrog" (a@a.a) |
| Date: | Tue, 14 Aug 2007 12:57:50 |
Hi
I'm trying to use xcopy (c:\windows\xcopy.exe) to copy a file.
I'm calling it from a Delphi 1 application in order to overcome the problem,
that Delphi 1 doesn't know of long filenames (?).
So, what I'm trying to do is
WinExec('xcopy c\:old.txt c\:newfilewithlongname.txt', SW_SHOWNORMAL)
and it works, except that I get a dialog to confirm that the destination is
a file and not a folder.
I've looked at the command line parameters of xcopy, but can't find a way to
suppress this dialog.
Can you help?
My basic problem is to create a file from my Delphi 1 app with a long fil
name, and this is the way I thought I could do it. Any other ideas?
Thanks
Jacob