|
 |
aspx thread: Get Disk Space
Message #1 by "Paul Gleeson" <paul.gleeson@h...> on Wed, 16 Jan 2002 13:22:39
|
|
Hi
My name is Paul,
I am a senior systems support engineer and I have purchased the book
beginning ASP.NET/VB.NET in order to complete a task delegated to me. The
task is to write a web-based tool to check the hard drive free space, used
space and percentage free on all of the primary SQL servers on our
network. But as time is an issue and I am very much a beginner I need some
help. I have been two days looking on Internet sites and books for some
idea on how to achieve this and to my surprise I could only find finished
products.
Please could you give me a clue of the code to achieve this, as I cannot
find any reference material to use?
Message #2 by Asim Karim <asimkarim@y...> on Wed, 16 Jan 2002 05:22:50 -0800 (PST)
|
|
Paul,
I am currently using this code in asp.
Not sure if this will work in .Net but it gives me the
available space. You may have to fine tune the code to
your needs.
'Function ShowAvailableSpace(drvPath)
'Dim fso, d, s
'Set fso = CreateObject("Scripting.FileSystemObject")
'Set d = fso.GetDrive(fso.GetDriveName(drvPath))
'ShowAvailableSpace = FormatNumber(d.AvailableSpace,
0)
'End Function
--- Paul Gleeson <paul.gleeson@h...> wrote:
> Hi
> My name is Paul,
> I am a senior systems support engineer and I have
> purchased the book
> beginning ASP.NET/VB.NET in order to complete a task
> delegated to me. The
> task is to write a web-based tool to check the hard
> drive free space, used
> space and percentage free on all of the primary SQL
> servers on our
> network. But as time is an issue and I am very much
> a beginner I need some
> help. I have been two days looking on Internet sites
> and books for some
> idea on how to achieve this and to my surprise I
> could only find finished
> products.
> Please could you give me a clue of the code to
> achieve this, as I cannot
> find any reference material to use?
>
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
Message #3 by Asim Karim <asimkarim@y...> on Wed, 16 Jan 2002 05:26:46 -0800 (PST)
|
|
Lookup FileSystemObject
--- Paul Gleeson <paul.gleeson@h...> wrote:
> Hi
> My name is Paul,
> I am a senior systems support engineer and I have
> purchased the book
> beginning ASP.NET/VB.NET in order to complete a task
> delegated to me. The
> task is to write a web-based tool to check the hard
> drive free space, used
> space and percentage free on all of the primary SQL
> servers on our
> network. But as time is an issue and I am very much
> a beginner I need some
> help. I have been two days looking on Internet sites
> and books for some
> idea on how to achieve this and to my surprise I
> could only find finished
> products.
> Please could you give me a clue of the code to
> achieve this, as I cannot
> find any reference material to use?
>
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
Message #4 by "Gleeson, Paul" <Paul.Gleeson@h...> on Wed, 16 Jan 2002 13:24:56 -0000
|
|
Thank you very much Asim, I will try.
Paul Gleeson
HIS - Projects and NT_Services
Ext 5682
-----Original Message-----
From: Asim Karim [mailto:asimkarim@y...]
Sent: Wednesday 16 January 2002 13:23
To: ASP+
Subject: [aspx] Re: Get Disk Space
Paul,
I am currently using this code in asp.
Not sure if this will work in .Net but it gives me the
available space. You may have to fine tune the code to
your needs.
'Function ShowAvailableSpace(drvPath)
'Dim fso, d, s
'Set fso = CreateObject("Scripting.FileSystemObject")
'Set d = fso.GetDrive(fso.GetDriveName(drvPath))
'ShowAvailableSpace = FormatNumber(d.AvailableSpace,
0)
'End Function
--- Paul Gleeson <paul.gleeson@h...> wrote:
> Hi
> My name is Paul,
> I am a senior systems support engineer and I have
> purchased the book
> beginning ASP.NET/VB.NET in order to complete a task
> delegated to me. The
> task is to write a web-based tool to check the hard
> drive free space, used
> space and percentage free on all of the primary SQL
> servers on our
> network. But as time is an issue and I am very much
> a beginner I need some
> help. I have been two days looking on Internet sites
> and books for some
> idea on how to achieve this and to my surprise I
> could only find finished
> products.
> Please could you give me a clue of the code to
> achieve this, as I cannot
> find any reference material to use?
>
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
**************************************************************************************************
this message has been sent via the Internet. Internet communications
are not secure against interception or modification. Harrods Ltd
therefore can not guarantee that this message has not been
modified in transit.
This message and any files transmitted with it are confidential and
intended solely for the use of the addressee. If you have received this
message in error please notify the sender and destroy your copies of
the message and any attached files.
Harrods Limited
Registered in London
Company Number 30209
Registered Office:
87-135 Brompton Road
Knightsbridge
London
SW1X 7XL
**************************************************************************************************
|
|
 |