الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكلة فى نسخ ملف

مغلق
بدأه Amr_Saafan في 19 ديسمبر 2005 · 4 رد · 480 مشاهدة · في منتدى تصميم صفحات الويب
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

hello everybody

i just joined that group .and i need help in asp as soon as possible.that i need code to make a backup from file as i can take a copy from that file and paste it in another folder.

i had tried that code but it took time to load then nothing happened.

<% dim fs,f 
set fs=Server.CreateObject("Scripting.FileSystemObject") 
set f=fs.GetFile("c:\test.txt") 
f.Copy("c:\new_test.txt",false) 
set f=nothing 
set fs=nothing %>

if anyone can help me please feel free to send me

تم تعديل هذه المشاركة بواسطة طارق إبراهيم في 20 ديسمبر 2005 في 12:18

Amr Elsayed

meshmesh40@hotmail.com

http://groups.yahoo.com/group/Developers_For_Ever

#2
Amr_Saafan كتب:
hello everybody

  i just joined that group .and i need help in asp as soon as possible.that i need code to make a backup from file as i can take a copy from that file and paste it in another folder.

i had tried that code but it took time to load then nothing happened.

<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\test.txt") f.Copy("c:\new_test.txt",false) set f=nothing set fs=nothing %>

if anyone can help me please feel free to send me

بالنسبة لـ FileSystemObject أعتقد أنه يجب تفعيله يدويا أي القيام ببعض الإعدادات, اي أنه غير ممكن التعامل معه بشكل تلقائي

#3

فقط Synatx Error فى السطر الرابع حيث ان ال Copy Method لا تستخدم الاقواس ()

<% 
dim fs,f
set fs = Server.CreateObject("Scripting.FileSystemObject")
set f  = fs.GetFile("c:\test.txt")
f.Copy "c:\new_test.txt",false 'Do Not Allow Overwrite
set f = nothing
set fs= nothing 
%>

و إن كنت احبذ استخدام CopyFile لانها تسمح لك بنسخ اكثر من ملف فى المرة الواحدة

اتمنى ان تكت موضوعك المرة القادمة بلغة عربية فصحى و يكون عنوان موضوعك دالاً على المشكلة و ليس help in asp

Technical Lead Developer

My LinkedIn Profile

اللهم قنى شر الجهل و الجهلاء

( اقْتَرَبَ لِلنَّاسِ حِسَابُهُمْ وَهُمْ فِي غَفْلَةٍ مَّعْرِضُونَ ) {الأنبياء:1}

#5

قمت بدمج الموضوعين و اتمنى فى المرة القادمة ان تضع موضوعك فى مكان واحد حتى لا تتعرض للانذار او غلق اى من الموضوعين

Technical Lead Developer

My LinkedIn Profile

اللهم قنى شر الجهل و الجهلاء

( اقْتَرَبَ لِلنَّاسِ حِسَابُهُمْ وَهُمْ فِي غَفْلَةٍ مَّعْرِضُونَ ) {الأنبياء:1}

هذا الموضوع مغلق.

مواضيع مشابهة