I want to simulate a network drive. It seems that the simplest way would be to use Microsoft Loopback Adapter but all of the instructions I've found on the web how to install it refer to non existing options in Windows 10. Is it not available in Windows 10 or how do I install it?
If it's not available - how can I simulate a network drive? Somehow make a folder recognized as a drive? Make an external HDD behave like that? Something else? (the router doesn't have a USB port so I can't use that.)
If there's some software emulation for testing applications that would be fine. I'm using C#. Perhaps something in Visual Studio?
It's been renamed to "Microsoft KM-TEST Loopback Adapter". (MSDN)
Related
I am creating an app that will be used with terminal services, and I have created a explorer that will allow me to transfer files. this is first of all only on local machine. Is there a way that will allow me to connect to the remote machine access their common library. that would allow them to choose desktop and Documents folders.
I have been trying to get the IP address of the remote machine by Code Projects Grabbing Information Of Terminal Services. I guess I'm really at a loss of words here, I'm not sure where to begin to start this process. any help or Ideas links would be very helpful.
Thanks so much!
Where is your file? In the net folder, or not? Can you install serviceses on target machine?
You can use Process.Start method in combination with Mark Russinovich utilities or powershell remoting.
I need to develop an app in C# that is like the Restore Database at SQL Management Studio.
It's basically a FileDialog that remotely shows the files/folder on the server.
I think its pretty simple, but since I'm starting developing apps using Remote (.NET) I need some help.
Of course I'm not asking to have a ready-to-go code, I would appreciate some tutorials and how to start developing things remotely and using Windows Form.
Thanks !
Leo
That depends on the network access you're going to have to the remote machine. If you have access to the file system, all you need to do is point the regular file dialog to the right network path.
If you can't reach the remote machine's file system, you'll need to create an agent that runs on that machine and offers access to the files. You can do that, but unless you're really careful you're going to introduce a major security hole. Instead, you can just enable the regular Windows network file access.
I would like to auto-create an ad-hoc wireless network from my laptop.
I use windows XP SP3 and I want to do it using C#.
I have seen some libraries for mobile, but I havent found something regrading PC.
Is there an API to do that ?
Thank you.
Ad-hoc network are usually used in Ubiquitous Computing (smart homes). For a laptop, it depends what you'd like to connect to, as ad-hoc usually work with many devices you control.
May be you mean connecting to whatever network you can, in which case it's more on the OS-level.
If you are willing to setup one machine on the network as a wireless server and forgo Ad Hoc, then the Managed Wifi API on codeplex looks very promising. It is in C# and works on XP SP3 and higher (and a little bit on SP2, fyi). http://managedwifi.codeplex.com/
It uses the Native Wifi API from Microsoft. The Native Wifi API requires you to have a server machine which will hand out private IPs to other devices that connect to the network you create. In Native Wifi you would want StandAlone mode ICS in order to create your network (if you want internet access on your network use full ICS then).
http://msdn.microsoft.com/en-us/library/windows/desktop/dd815252(v=vs.85).aspx
Use the Native Wifi as just a reference though, Managed Wifi API is what you will want for C#.
I'm interested in this too actually. I think this could be useful:
http://msdn.microsoft.com/en-us/library/ms705973(v=vs.85).aspx
Unfortunately, this is only available for Windows 7 and Windows Server 2008 I believe.
I don't know any c#, but if I did, it'd probably make sense. If you find any insight, please contact me, I'd also like to learn how to do this as well.
I am creating an application that is connecting to another computer through an Ethernet cable in XP. I need to execute the network setup wizard to setup a local area connection (with File sharing Turned On) and then set static ips and the default gateway; all this programmatically using C#. How can this be achieved?
You should be able to do this with INetCfg as described here. It's a Win32 API so you'd have to use PInvoke, as discussed here, and you should be able to find samples for calling it from C# by a search for INetCfg and C# or similar.
I'm working with with asp.net and writing a few classes (controls for the CMS) to use on my website. At the moment i'm using a text editor (UE) which has sftp support and syntax highlighting to edit the files and save via sftp. Then i just test it out on the test site. It's working well.. but since i'm very new to c# i'm always looking up methods,argunments etc.
Not unpossible but a pain.
So this is where Visual Studio comes into it. I'd like to use VS so i get auto-complete and the hooks to MSDN. However i'm not interested in setting up a local environment to work in as i already have a test environment at my webhost, and frankly it's the differences between my set up and the host (ie: the CMS, unicode issues, dates...) that are the trickier bits.
Is there a way to use Visual Studio with a remote site accessible only by sftp?
One way to do this would be to mount the SFTP server as a windows drive.
If the SFTP server is on your local network then you can mount it as a windows share. If it is outside your network on in your DMZ, then you can find software that lets you mount the SFTP server as a drive.
Software that allows you to do this include ExpanDrive. This would allow you to use Visual Studio as normal whilst behind the scenes the files are uploaded to and downloaded from the SFTP server as required.
Well, it's an answer:
My first thought is just setup FileZilla to send the directory of your "published" development website. This would be the easiest setup, and frankly the fastest way to get content to your server.
If you are specifically looking for an in-application way to do this:
Visual Studio is setup to accept embedded applications. For example: VIM (Vi Embedded). You can simply load an sFTP savvy embedded app.
One example:
From VIM Docs:
Network-oriented file transfer under Vim is implemented by a VimL-based script
() using plugin techniques. It currently supports both reading
and writing across networks using rcp, scp, ftp or ftp+<.netrc>, scp, fetch,
dav/cadaver, rsync, or sftp.