473,790 Members | 2,850 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you retrive drives and net work connections?

I want to retrieve a list of all the drives (HD, CD-ROM, Removable,
etc) and also network connections/mappings and shares connected to the
computer which is Windows XP.

I am trying to avoid using FileSystemObjec t if possible. Is there
anyway of doing this with PHP extensions?

My other thought would be to use exec() or a Java applet.

Any one of code that does this already or have any ideas how it could
be done?

Thanks.

Jun 8 '06 #1
4 1337
Do you want the client's or the server's drives? To get the latter one,
you could use PHP's exec, otherwise you need a Java Applet.

Jun 8 '06 #2

milahu wrote:
Do you want the client's or the server's drives? To get the latter one,
you could use PHP's exec, otherwise you need a Java Applet.


Only the client's. What would the command be to use exec() to get list
of drives?

Jun 9 '06 #3
"ImOk" <j_********@yah oo.com> wrote:

milahu wrote:
Do you want the client's or the server's drives? To get the latter one,
you could use PHP's exec, otherwise you need a Java Applet.


Only the client's. What would the command be to use exec() to get list
of drives?


You can't do it. All of your PHP code, including the exec() function, runs
on the SERVER.

To enumerate the disk drives on a client computer, you have to send a
program to the client. That means using a Java or ActiveX applet. The
user will have to specifically override the security settings to allow that
to happen.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jun 10 '06 #4
Sorry I confused this. You are right it would be the SERVER i.e. the
computer PHP is actiually executing on. I would like to have PHP return
back to me the list of drives and shares to my browser.

Tim Roberts wrote:
"ImOk" <j_********@yah oo.com> wrote:

milahu wrote:
Do you want the client's or the server's drives? To get the latter one,
you could use PHP's exec, otherwise you need a Java Applet.


Only the client's. What would the command be to use exec() to get list
of drives?


You can't do it. All of your PHP code, including the exec() function, runs
on the SERVER.

To enumerate the disk drives on a client computer, you have to send a
program to the client. That means using a Java or ActiveX applet. The
user will have to specifically override the security settings to allow that
to happen.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.


Jun 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4380
by: Bruno Alexandre | last post by:
Hi guys, withou using SP, I want to be able to add a Parameter to the SQL Query and retrive the Recordset so I can use the Paging property under the recorset object.... how can I do this? I'm stuck here.
36
4001
by: Ron Johnson | last post by:
http://hardware.devchannel.org/hardwarechannel/03/10/20/1953249.shtml?tid=20&tid=38&tid=49 -- ----------------------------------------------------------------- Ron Johnson, Jr. ron.l.johnson@cox.net Jefferson, LA USA I can't make you have an abortion, but you can *make* me pay child support for 18 years? However, if I want the child (and all the expenses that entails) for the *rest*of*my*life*, and you
4
1350
by: Phillip N Rounds | last post by:
I need to eumerate all available drives in a C# Windows Form application ( and then of course the directory tree, but that's not the problem) My question is, how to I enumerate all the available drives? My initial thought was along the lines of DirectoryInfo di = new DirectoryInfo( "c:\\"); DirectoryInfo Root = new DirectoryInfo( di.Parent.Name.ToString() ); DirectoryInfo RootDrives = Root.GetDirectories();
2
1665
by: Terry | last post by:
Any .dll or COM+ for .Net can help me retrive data from a Access file? The table contain several columns and the last one is a container which I store Article; because each article is a little bit huge, so when I store it, it ask me if I want to pack it (the article) into a object then I click 'Yes'. But now I need to retrive data from the file and show it by datagrid, and now I don't know what kind of data type it is (when I click it, it...
2
1937
by: ImOk | last post by:
WHen I run this under Windows I get the Count of drives but then I get an error message on the Reset() when I try to enumerate. Does this work for anyone? $fs = new COM("Scripting.FileSystemObject"); $drives = $fs->Drives; echo $drives->Count; $drives->Reset(); while($drive = $drives->Next()) { echo $drive->VolumeName;
3
1970
by: =?Utf-8?B?UGV0ZXIgSiwgU2Nhbmlh?= | last post by:
Hello I'm looking for an solution about how to retrive data from an client side located Excel document by using an ASP.Net application. I don't want to upload the file to the server. I just want to get the data and persist it in an database after that some business validation have been done. Does anyone have any idea?
3
5539
by: Sabine | last post by:
Hi there, I would need your help again. I am using Dev Avish's API function "Search for a file" http://www.mvps.org/access/api/api0006.htm to find a file on my computer which works well. As you may know, in this function the user needs to specify the drive which is then searched for the specific file.
1
1677
idsanjeev
by: idsanjeev | last post by:
hello i wants to retrive data in textarea like input text but in textarea value is not work so what should be use to retrive textarea value after any error <input type="text" name="name" value="<%=name%>"> [/code>
8
2438
by: Salad | last post by:
I was asked to get my daughter a flash drive. She needs to use it to copy files to it so she can transfer the files at school to her desktop at home. I've never used one but I figure some of you have. I see flash drives from on the net from 128 meg up to 16 gig. Prices range from $20 to $600. I see a lot of those ads referring to cameras. Are there USB flash drives specific for cameras and others for computers? Or do they all work...
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10413
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.