एएसपी ट्यूटोरियल

एएसपी होम

WP ट्यूटोरियल

वेबपेज परिचय वेबपेज रेजर वेबपेज लेआउट वेबपेज फोल्डर वेबपेज ग्लोबल वेबपेज फॉर्म वेबपेज ऑब्जेक्ट्स वेबपेज फ़ाइलें वेबपेज डेटाबेस वेबपेज हेल्पर्स वेबपेज वेबग्रिड वेबपेज चार्ट वेबपेज ईमेल वेबपेज सुरक्षा वेबपेज प्रकाशित वेबपेज उदाहरण वेबपेज कक्षाएं

ASP.NET रेजर

रेजर इंट्रो रेजर सिंटेक्स रेजर सी # चर रेजर सी # लूप्स रेजर सी # लॉजिक रेजर वीबी चर रेजर वीबी लूप्स रेजर वीबी लॉजिक

एएसपी क्लासिक

एएसपी परिचय एएसपी सिंटेक्स एएसपी चर एएसपी प्रक्रियाएं एएसपी सशर्त एएसपी लूपिंग एएसपी फॉर्म एएसपी कुकीज़ एएसपी सत्र एएसपी आवेदन एएसपी #शामिल करें एएसपी Global.asa एएसपी अजाक्स एएसपी ई-मेल एएसपी उदाहरण

एएसपी संदर्भ

एएसपी वीबी कार्य एएसपी वीबी कीवर्ड एएसपी प्रतिक्रिया एएसपी अनुरोध एएसपी आवेदन एएसपी सत्र एएसपी सर्वर एएसपी त्रुटि एएसपी फाइल सिस्टम एएसपी टेक्स्टस्ट्रीम एएसपी ड्राइव एएसपी फ़ाइल एएसपी फ़ोल्डर एएसपी डिक्शनरी एएसपी एडरोटेटर एएसपी ब्राउज़र कैप एएसपी सामग्री लिंकिंग एएसपी सामग्री रोटेटर एएसपी त्वरित रेफरी

एडीओ ट्यूटोरियल

एडीओ परिचय एडीओ कनेक्ट एडीओ रिकॉर्डसेट एडीओ प्रदर्शन एडीओ क्वेरी एडीओ सॉर्ट एडीओ जोड़ें एडीओ अपडेट एडीओ हटाएं एडीओ डेमो एडीओ स्पीड अप

एडीओ ऑब्जेक्ट्स

एडीओ कमांड एडीओ कनेक्शन एडीओ त्रुटि एडीओ फील्ड एडीओ पैरामीटर एडीओ संपत्ति एडीओ रिकॉर्ड एडीओ रिकॉर्डसेट एडीओ स्ट्रीम एडीओ डेटा प्रकार

एएसपी फाइलसिस्टमऑब्जेक्ट ऑब्जेक्ट


FileSystemObject ऑब्जेक्ट का उपयोग सर्वर पर फ़ाइल सिस्टम तक पहुँचने के लिए किया जाता है।


और ज्यादा उदाहरण


कैसे जांचें कि कोई फ़ाइल मौजूद है या नहीं।


कैसे जांचें कि कोई फ़ोल्डर मौजूद है या नहीं।


कैसे जांचें कि कोई ड्राइव मौजूद है या नहीं।


का नाम कैसे प्राप्त करें।


के पैरेंट फ़ोल्डर का नाम कैसे प्राप्त करें।


फ़ाइल नाम प्राप्त करें किसी निर्दिष्ट पथ में अंतिम घटक का


फ़ाइल एक्सटेंशन प्राप्त करें किसी निर्दिष्ट पथ में अंतिम घटक का


का मूल नाम प्राप्त करें किसी निर्दिष्ट पथ में फ़ाइल या फ़ोल्डर का मूल नाम कैसे प्राप्त करें।


फाइलसिस्टमऑब्जेक्ट ऑब्जेक्ट

FileSystemObject ऑब्जेक्ट का उपयोग सर्वर पर फ़ाइल सिस्टम तक पहुँचने के लिए किया जाता है।

यह ऑब्जेक्ट फ़ाइलों, फ़ोल्डरों और निर्देशिका पथों में हेरफेर कर सकता है। इस ऑब्जेक्ट के साथ फाइल सिस्टम जानकारी को पुनः प्राप्त करना भी संभव है।

निम्न कोड एक टेक्स्ट फ़ाइल (c:\test.txt) बनाता है और फिर फ़ाइल में कुछ टेक्स्ट लिखता है:

<%
dim fs,fname
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fname=fs.CreateTextFile("c:\test.txt",true)
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothing
%>


FileSystemObject ऑब्जेक्ट के गुण और विधियाँ नीचे वर्णित हैं:

गुण

Property Description
Drives Returns a collection of all Drive objects on the computer

तरीकों

Method Description
BuildPath Appends a name to an existing path
CopyFile Copies one or more files from one location to another
CopyFolder Copies one or more folders from one location to another
CreateFolder Creates a new folder
CreateTextFile Creates a text file and returns a TextStream object that can be used to read from, or write to the file
DeleteFile Deletes one or more specified files
DeleteFolder Deletes one or more specified folders
DriveExists Checks if a specified drive exists
FileExists Checks if a specified file exists
FolderExists Checks if a specified folder exists
GetAbsolutePathName Returns the complete path from the root of the drive for the specified path
GetBaseName Returns the base name of a specified file or folder
GetDrive Returns a Drive object corresponding to the drive in a specified path
GetDriveName Returns the drive name of a specified path
GetExtensionName Returns the file extension name for the last component in a specified path
GetFile Returns a File object for a specified path
GetFileName Returns the file name or folder name for the last component in a specified path
GetFolder Returns a Folder object for a specified path
GetParentFolderName Returns the name of the parent folder of the last component in a specified path
GetSpecialFolder Returns the path to some of Windows' special folders
GetTempName Returns a randomly generated temporary file or folder
MoveFile Moves one or more files from one location to another
MoveFolder Moves one or more folders from one location to another
OpenTextFile Opens a file and returns a TextStream object that can be used to access the file