ASP DriveExists ਮੈਥਡ

ਵਿਆਖਿਆ ਅਤੇ ਵਰਤੋਂ

DriveExists ਮੈਥਡ ਇੱਕ ਬੋਲੀਨ ਮੁੱਲ ਵਾਪਸ ਦਿੰਦਾ ਹੈ ਜੋ ਨਿਰਧਾਰਿਤ ਗਰੁੱਪ ਦੀ ਮੌਜੂਦਗੀ ਨੂੰ ਸੂਚਿਤ ਕਰਦਾ ਹੈ। ਜੇਕਰ ਗਰੁੱਪ ਮੌਜੂਦ ਹੈ ਤਾਂ True ਵਾਪਸ ਦਿੰਦਾ ਹੈ ਨਾਲ ਹੀ ਗਰੁੱਪ ਨਾ ਮੌਜੂਦ ਹੈ ਤਾਂ False ਵਾਪਸ ਦਿੰਦਾ ਹੈ。

ਗਣਨਾਤਮਕ ਰੂਪ:

FileSystemObject.DriveExists(drive)
ਪੈਰਾਮੀਟਰ ਵਰਣਨ
ਗਰੁੱਪ ਲੋੜੀਦਾ ਹੈ। ਗਰੁੱਪ ਅੱਖਰ ਜਾਂ ਪੂਰਾ ਪਥ ਨਿਰਧਾਰਿਤ ਕਰੋ。

ਉਦਾਹਰਣ

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.DriveExists("c:")=true then
  response.write("Drive c: exists!")
else
  response.write("Drive c: does not exist.")
end If
set fs=nothing
%>