وعليكم السلام ورحمة الله وبركاته
جرب السطور التالية
PHP كود :
Dim fromfilepath As String = "\\servername\sharedfoldername\text1.txt" Dim tofilepath As String = "D:\text1.txt" My.Computer.FileSystem.CopyFile(fromfilepath, tofilepath, True)
(31-12-17, 06:09 PM)طالب برمجة كتب : [ -> ]هذه عملية نسخ ملف لأن مسار ملف المشاركة مثله مثل مسار أي ملف على جهازك
فاعمل نسخ باستخدام IO.File.Copy أو My.Computer.FileSystem.CopyFile
(31-12-17, 06:32 PM)ibraheam كتب : [ -> ]وعليكم السلام ورحمة الله وبركاته
جرب السطور التالية
PHP كود :
Dim fromfilepath As String = "\\servername\sharedfoldername\text1.txt" Dim tofilepath As String = "D:\text1.txt" My.Computer.FileSystem.CopyFile(fromfilepath, tofilepath, True)