no FileCopy support in CF. isen't there a easy way?

  • Thread starter Thread starter -- kurt --
  • Start date Start date
K

-- kurt --

hi

after a long period if try and error i finally found in
the help a table showing lots a vb.net functions supported
or not in a table. and i finally know the basic function
of FILECOPY has that horrifying (*) what means NOT
SUPPORTET. well we still need 2 copy files say from the
server using wlan to the pda since we cant have that heavy
net traffic. is the a easy way 2 do a filecopy in vba.net
cf replacing this vba.net way:

FileCopy("\\Server\Share\FileFromServer.Ext", "\My
Ducuments\FileFromServer.Ext")

and d how would b the way 2 figure this out 4 me?

thank u all 4 any help.

cheers
-- kurt --
 
There's a CopyFile() function in the Windows API. You can p/invoke it. I
haven't tried this declaration, but it should be close:

Declare Function CopyFile Lib "coredll.dll" ( existingfile As String,
newfile As String, failIfExists as Boolean)Paul T.
 
What's wrong with File.Copy("\\Server\Share\FileFromServer.Ext", "\My
Documents\FileFromServer.Ext") ?
 
The good news is this...FileCopy may be unsupported, but just insert a
period between the e and the C File.Copy and you'll get what you need. You
may need to include System.IO; but other than that, it'll work
 
hi

wowww it is really easy and it works.

thank you very much!

but now i have some serious questions 2 the microsoft help
developers and supporters. why does a table like this:

ms-
help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dv_evtuv/html/e
tlrfFunctions.htm

does not tell about the easy way around. how would i know
there is this function when the table does not link 2 it?
it would be 1 small hyperlink for the help but instead it
is endless searching for some (i agree not advanced)
programmer.

im very glad about this groups and than all what always
replay and help out!

best regards
-- kurt --
 
hi

well nothing wrong about it once u know it now has a
periode.

thank you very much!

but now i have some serious questions 2 the microsoft help
developers and supporters. why does a table like this:

ms-
help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dv_evtuv/html/e
tlrfFunctions.htm

does not tell about the easy way around. how would i know
there is this function when the table does not link 2 it?
it would be 1 small hyperlink for the help but instead it
is endless searching for some (i agree not advanced)
programmer.

im very glad about this groups and than all what always
replay and help out!

best regards
-- kurt --
-----Original Message-----
What's wrong with File.Copy
("\\Server\Share\FileFromServer.Ext", "\My
 
hi

yes API has the copy function. but since there is the
File.Copy <-- with a periode i used this.

thank you very much!

but now i have some serious questions 2 the microsoft help
developers and supporters. why does a table like this:

ms-
help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dv_evtuv/html/e
tlrfFunctions.htm

does not tell about the easy way around. how would i know
there is this function when the table does not link 2 it?
it would be 1 small hyperlink for the help but instead it
is endless searching for some (i agree not advanced)
programmer.

im very glad about this groups and than all what always
replay and help out!

best regards
-- kurt --
 
Back
Top