Using vb.net to copy a file from Windows XP to Linux - vb.net

I have some simple vb.net code that I use to copy a file between 2 servers.
IO.File.Copy(fromFileName, toFileName, True) ' Overwrites existing files
That works fine when both machines are Windows XP.
What would I need to do differently if 1 of the machines happens to be a LINUX box?

One way is to create a Windows-compatible network share using Samba on the Linux machine. This share can be made accessible to Windows using a standard network path.

Related

How to deploy an existing VHD without any third party tool?

I have created some VMs using Microsoft Hypervisor. I have the vhdx files for those VMs. now i want to use these same vhdx files to deploy new VMs on let's say other machines,or on the same machine with different names. IS it possible? If it is, Is it possible to deploy VHDs via a script?
I have not personally tried but through Windows PowerShell you can do it. Refer following links for more details:
https://www.starwindsoftware.com/blog/automate-the-hyper-v-virtual-machine-deployment-with-powershell
https://technet.microsoft.com/en-us/library/jj933287.aspx
https://www.altaro.com/hyper-v/hyper-v-attach-existing-virtual-disk/

"Single instance application": Multiple instances in Windows 2008 terminal server environment

I have a small VB.NET application to handles a custom URL protocol. It is set up in Visual Studio with the option to "Make single instance application". This has worked for hundreds of installations, but a recent customer is using Windows Terminal Server 2008, and it is launching multiple copies of the application. It does not seem to sense that it is already running for a specific user. BTW -
Multiple users can run it without problems in different sessions.
Is there some sort of setting on the Windows Terminal server that could cause this?
We have installed the application using install mode, and with the administrator ID.
Any ideas would be appreciated.

Run an executable when a web address is called

I'm trying to find a way to run a dos executable when called by another server.
It's hard to explain sorry,
So I have a windows server 2008r2. On it is a dos exe that I need to run.
I also have a linux ubuntu server that hosts some SQL and web pages (apache).
Users update a table in the linux box, and when they do I need to run a dos exe on the windows box.
I don't want to use scheduled tasks on the windows box, because updates need to happen at the moment the data is changed in the linux box with little delay.
Any way anyone can think of that the linux box can 'call' the windows server to run the exe?
Thanks :)

How can I download my whole site using FTP and still keep file permissions?

I'm using Windows XP and have an FTP connection to my server. I would like to download the everything including file permissions as well. Filezila to my knowledge doesn't do that unless your on an Linux machine.
What should I do ?
Thank-you all
BigThings
Ftp doesn't support transfer of file permission as it is platform independent - you can ftp to linux from windows, windows from linux ect... when you get the files to the local machine - you can do anything with them as your local folder permissions allows.

Disk2vhd Hyper-V server question

Hello all I have a backed up about 30 servers using disk2vhd and now I have built my first of many hyper-v severs I did not realize this is all command line I did download CoreConfigurator and that does have some functionality I have been looking for. My question is how do I get the VHD files to run a Vitual Machines? its all command line I tried via vbs to mount the VHD's and I have not been able to any help on this would be great!
Thanks!
If you are using servercore, You maybe can do everything from the command line but I always prefer to have one computer running a Non server core version of windows 2008 to be the management server. You will load up Hyper-V manager on the non server core box and manage your Hyper-V server.
To have no "management" servers or desktops on your network will be a big pain IMO for management.
Using Hyper-V Manager you can quickly load the VHD's as VM's.
So load up Hyper-V Manager on a desktop PC on your localnet, and use its connect option to connect to your servercore. (Make sure your firewall settings are ok on servercore using coreconfig)