Hi all,
I'm trying to get a full directory listing from a remote machine. Anyone
know how? Also, is it possible to read a file from a remote machine, like a
..TXT file or a .XML file in a specified directory without using the C$, D$,
etc. or other shares? Finally, what rights would I need to read/write a
registry key remotely?
Thanks,
Michael C. 4 11252
The UNC path should work for you as long as you have permission
--
W.G. Ryan, eMVP http://forums.devbuzz.com/ http://www.knowdotnet.com/williamryan.html http://www.msmvps.com/WilliamRyan/
"Michael C" <mi*******@opto nline.net> wrote in message
news:en******** ******@tk2msftn gp13.phx.gbl... Hi all,
I'm trying to get a full directory listing from a remote machine. Anyone know how? Also, is it possible to read a file from a remote machine, like
a .TXT file or a .XML file in a specified directory without using the C$,
D$, etc. or other shares? Finally, what rights would I need to read/write a registry key remotely?
Thanks, Michael C.
OK. Is there a Win32 API function I can call to retrieve a remote
computer's directory?
Thanks,
Michael C
"William Ryan eMVP" <do********@com cast.nospam.net > wrote in message
news:u6******** ******@TK2MSFTN GP11.phx.gbl... The UNC path should work for you as long as you have permission
--
W.G. Ryan, eMVP
http://forums.devbuzz.com/ http://www.knowdotnet.com/williamryan.html http://www.msmvps.com/WilliamRyan/ "Michael C" <mi*******@opto nline.net> wrote in message news:en******** ******@tk2msftn gp13.phx.gbl... Hi all,
I'm trying to get a full directory listing from a remote machine.
Anyone know how? Also, is it possible to read a file from a remote machine,
like a .TXT file or a .XML file in a specified directory without using the C$, D$, etc. or other shares? Finally, what rights would I need to read/write a registry key remotely?
Thanks, Michael C.
using System;
using System.IO;
namespace ConsoleApplicat ion4 {
class Class1 {
[STAThread]
static void Main(string[] args) {
DirectoryInfo di = new DirectoryInfo(" \\\\barney\\CDr ive");
foreach (FileInfo fi in di.GetFiles()) {
Console.WriteLi ne(fi.FullName) ;
}
Console.ReadLin e();
}
}
}
Is that what you want?
Simon Smith
simon dot s at ghytred dot com http://www.ghytred.com/NewsLook - Usenet for Outlook
On 10 Jun 2004 22:29, "Michael C" wrote: OK. Is there a Win32 API function I can call to retrieve a remote computer's directory?
Thanks, Michael C
"William Ryan eMVP" <do********@com cast.nospam.net > wrote in message news:u6******* *******@TK2MSFT NGP11.phx.gbl.. . The UNC path should work for you as long as you have permission
--
W.G. Ryan, eMVP
That looks like it might require a "share" named "CDrive", so it's not quite
what I'm looking for. Here's the deal, I want to get a remote computer
directory listing just like Microsoft SQL Server Enterprise Manager does
when you click on the "Attach Database" function -- no shares required.
Anyone got any ideas?
Thanks,
Michael C.
"Simon Smith" <si*****@commun ity.com> wrote in message
news:b2******** *************** *******@ghytred .com... using System; using System.IO;
namespace ConsoleApplicat ion4 { class Class1 { [STAThread] static void Main(string[] args) { DirectoryInfo di = new DirectoryInfo(" \\\\barney\\CDr ive"); foreach (FileInfo fi in di.GetFiles()) { Console.WriteLi ne(fi.FullName) ; } Console.ReadLin e(); } } }
Is that what you want?
Simon Smith simon dot s at ghytred dot com http://www.ghytred.com/NewsLook - Usenet for Outlook
On 10 Jun 2004 22:29, "Michael C" wrote:OK. Is there a Win32 API function I can call to retrieve a remote computer's directory?
Thanks, Michael C
"William Ryan eMVP" <do********@com cast.nospam.net > wrote in message news:u6******* *******@TK2MSFT NGP11.phx.gbl.. . The UNC path should work for you as long as you have permission
--
W.G. Ryan, eMVP This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nick Bunton |
last post by:
I have setup remote debugging on an NT4 workstation for
testing. I then build from the debug config on my machine
and copy all the files from the /bin/debug folder
including the .PDB files. I then connect to the remote
machine with VNC and start the application, once running
from VS .NET on my development machine I connect to that
process and the running app is shown in the IDE, but I
cannot get the application to stop on any breakpoints...
|
by: JoelWhitehouse |
last post by:
Hi! I want to write a script that will read a .php file on a remote
server and print to the current page a portion of the text contained in
the remote file. I am just wondering what the best method is for
reading from a file in this case - the file is only a few bytes long.
I've seen a tutorial or two that only tangentially addresses my
problem, and even then each one has varied greatly as to which object
they utilize.
Any ideas to...
|
by: bettervssremoting |
last post by:
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere
and VSS Remoting
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
|
by: Adrian |
last post by:
Hi
I have some local pages (on PC harddisk) that act as a user interface
and a set of JS files that controls it all. I now want to be able to access
a remote web server to read a txt file and use the result in my local
script.
eg
Remote text file i.e. conf.txt
|
by: John Pote |
last post by:
Hello, help/advice appreciated.
Background:
I am writing some web scripts in python to receive small amounts of data
from remote sensors and store the data in a file. 50 to 100 bytes every 5 or
10 minutes. A new file for each day is anticipated. Of considerable
importance is the long term availability of this data and it's gathering and
storage without gaps.
As the remote sensors have little on board storage it is important that a
| |
by: John Pote |
last post by:
Hello, help/advice appreciated.
Background:
I am writing some web scripts in python to receive small amounts of data
from remote sensors and store the data in a file. 50 to 100 bytes every 5 or
10 minutes. A new file for each day is anticipated. Of considerable
importance is the long term availability of this data and it's gathering and
storage without gaps.
As the remote sensors have little on board storage it is important that a
|
by: Jerim79 |
last post by:
I did try to find the answer to this before posting, so this isn't a
knee jerk reaction.
What I am trying to accomplish is to have a script that opens a
cookie, reads a value, and then use a switch/case to take action based
on that value in the cookie. I want to set the cookie manually, so I
don't need setcookie(). I see that in PHP it stores the cookie in
memory. Is there a way to have PHP just read a cookie from the desktop
machine?...
|
by: barneymc |
last post by:
Im wondering if anyone has come across a way of reading EventLogs using WMI. The event logs files are restored from another server.
Below is the C# class that executes the query.
NOTE : The event logs were created on a different (production) machine that I dont have access to. Is it possible to read these files viia WMI ?
ManagementObjectSearcher searcher = null;
//Maybe add the namespace as a parameter in the...
|
by: Prof. William Battersea |
last post by:
Hello,
Suppose I have a Vista machine called VISTA and an XP machine called
XP in a workgroup named WORKGROUP. Physically they're connected to a
router and I can see lists of public and shared files on each of them.
How do I address these for IO?
A search suggested that the form open(r"\\server\folder\folder"), but
I tried many combinations guessing what it wants for that path in my
case (r"\\WORKGROUP\VISTA", "\\VISTA\PUBLIC", etc),...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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();...
|
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...
|
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
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |