ASP ကျူတိုရီရယ်များ

ASP ပင်မစာမျက်နှာ

WP ကျူတိုရီရယ်

ဝဘ်စာမျက်နှာများ နိဒါန်း ဝဘ်စာမျက်နှာများ သင်တုန်းဓား ဝဘ်စာမျက်နှာများ အပြင်အဆင် ဝဘ်စာမျက်နှာများ ဖိုဒါများ WebPages Global ဝဘ်စာမျက်နှာများ ပုံစံများ ဝဘ်စာမျက်နှာများ အရာဝတ္ထုများ WebPages ဖိုင်များ ဝဘ်စာမျက်နှာများ ဒေတာဘေ့စ်များ ဝဘ်စာမျက်နှာများ အကူအညီပေးသူများ ဝဘ်စာမျက်နှာများ WebGrid ဝဘ်စာမျက်နှာများ ဇယားများ ဝဘ်စာမျက်နှာများ အီးမေးလ် ဝဘ်စာမျက်နှာများ လုံခြုံရေး ဝဘ်စာမျက်နှာများ ထုတ်ဝေခြင်း။ ဝဘ်စာမျက်နှာများ ဥပမာများ WebPages အတန်းများ

ASP.NET Razor

သင်တုန်းမိတ်ဆက် Razor Syntax Razor C# Variables Razor C# ကွင်း သင်တုန်း C# ယုတ္တိဗေဒ Razor VB Variables Razor VB Loops Razor VB Logic

ASP Classic

ASP မိတ်ဆက် ASP Syntax ASP Variables ASP လုပ်ထုံးလုပ်နည်းများ ASP အခြေအနေများ ASP Looping ASP ပုံစံများ ASP Cookies ASP Session ASP လျှောက်လွှာ ASP #ပါဝင်ပါသည်။ ASP Global.asa ASP AJAX ASP အီးမေးလ် ASP ဥပမာများ

ASP အကိုးအကား

ASP VB လုပ်ဆောင်ချက်များ ASP VB သော့ချက်စာလုံးများ ASP တုံ့ပြန်မှု ASP တောင်းဆိုချက် ASP လျှောက်လွှာ ASP Session ASP ဆာဗာ ASP အမှား ASP ဖိုင်စနစ် ASP TextStream ASP Drive ASP ဖိုင် ASP Folder ASP အဘိဓာန် ASP AdRotator ASP BrowserCap ASP အကြောင်းအရာ ချိတ်ဆက်ခြင်း။ ASP အကြောင်းအရာ Rotator ASP အမြန် Ref

ADO ကျူတိုရီရယ်

ADO မိတ်ဆက် ADO ချိတ်ဆက်မှု ADO မှတ်တမ်းအစုံ ADO ရုပ်ထွက် ADO မေးခွန်း ADO အမျိုးအစား ADO ထည့်ပါ။ ADO အပ်ဒိတ် ADO ဖျက်ပါ။ ADO ဒီမို ADO အရှိန်မြှင့်ပါ။

ADO အရာဝတ္ထုများ

ADO Command ADO ချိတ်ဆက်မှု ADO အမှား ADO Field ADO Parameter ADO အိမ်ခြံမြေ ADO မှတ်တမ်း ADO မှတ်တမ်းအစုံ ADO တိုက်ရိုက်ကြည့်ရှုခြင်း။ ADO ဒေတာအမျိုးအစားများ

ASP ဖိုင် Object


File object ကို သတ်မှတ်ထားသော ဖိုင်တစ်ခုနှင့် ပတ်သက်သော အချက်အလက်များကို ပြန်ပေးရန်အတွက် အသုံးပြုပါသည်။


နောက်ထပ် ဥပမာများ


သတ်မှတ်ထားသောဖိုင်ကို နောက်ဆုံးမွမ်းမံထားသည့် ရက်စွဲနှင့် အချိန်ကို မည်သို့ရယူရမည်နည်း။


သတ်မှတ်ထားသောဖိုင်ကို နောက်ဆုံးဝင်ရောက်ခဲ့သည့် ရက်စွဲနှင့်အချိန်ကို မည်သို့ရယူရမည်နည်း။


တစ်ခု၏ အရည်အချင်းများကို မည်သို့ပြန်ပေးမည်နည်း။


File Object ၊

File object ကို သတ်မှတ်ထားသော ဖိုင်တစ်ခုနှင့် ပတ်သက်သော အချက်အလက်များကို ပြန်ပေးရန်အတွက် အသုံးပြုပါသည်။

File object ၏ ဂုဏ်သတ္တိများနှင့် နည်းလမ်းများဖြင့် လုပ်ဆောင်ရန်၊ FileSystemObject object မှတဆင့် File object ၏ ဥပမာတစ်ခုကို ဖန်တီးရမည်ဖြစ်ပါသည်။ ပထမ၊ FileSystemObject အရာဝတ္တုကိုဖန်တီးပြီး FileSystemObject အရာဝတ္တု၏ GetFile နည်းလမ်းမှတဆင့် သို့မဟုတ် Folder အရာဝတ္တု၏ Files ပိုင်ဆိုင်မှုမှတစ်ဆင့် ဖိုင်ကို ချက်ချင်းလုပ်ဆောင်ပါ။

အောက်ပါကုဒ်သည် သတ်မှတ်ထားသော ဖိုင်ကို ဖန်တီးခဲ့သည့် ရက်စွဲကို ပြန်ပေးရန်အတွက် FileSystemObject object ၏ GetFile နည်းလမ်းကို အသုံးပြုသည်-

ဥပမာ

<%
Dim fs,f
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.GetFile("c:\test.txt")
Response.Write("File created: " & f.DateCreated)
set f=nothing
set fs=nothing
%>


File object ၏ ဂုဏ်သတ္တိများနှင့် နည်းလမ်းများကို အောက်တွင် ဖော်ပြထားပါသည်။

သတ္တိ

Property Description
Attributes Sets or returns the attributes of a specified file
DateCreated Returns the date and time when a specified file was created
DateLastAccessed Returns the date and time when a specified file was last accessed
DateLastModified Returns the date and time when a specified file was last modified
Drive Returns the drive letter of the drive where a specified file or folder resides
Name Sets or returns the name of a specified file
ParentFolder Returns the folder object for the parent of the specified file
Path Returns the path for a specified file
ShortName Returns the short name of a specified file (the 8.3 naming convention)
ShortPath Returns the short path of a specified file (the 8.3 naming convention)
Size Returns the size, in bytes, of a specified file
Type Returns the type of a specified file

နည်းလမ်းများ

Method Description
Copy Copies a specified file from one location to another
Delete Deletes a specified file
Move Moves a specified file from one location to another
OpenAsTextStream  Opens a specified file and returns a TextStream object to access the file