Exeute Batch File on a Remote Computer htrough VB.Net - vb.net

I have a batch file in a remote machine. I also have a vb.net application in some other machine. Now all i need is to execute the batch file of that remote machine from this vb.net application.
One thing you must know is that the batch file cannot be executed unless and untill i log in to that remote machine and execute it.So all these while everytime I needed to run the batch file, I had to log in to that remote machine and then execute it.
Now I want the same through the VB.net application.Is it possible?
any help will be much appreciated.

This thread will give you a way of remotely starting a process via WMI:
http://social.msdn.microsoft.com/Forums/en-US/vbinterop/thread/74da6635-53d1-42e0-a48e-acc36d536d28/.

Related

connection to hive via ssh on jetbrains datagrip

I'm able to connect and interact with a hive database on the Putty terminal. But I'm clueless about how to do it on Datagrip.
These are the steps that I'm using for Putty:
Starting a session through SSH-type on the host(HostName) and port(22), which opens a terminal, and there I feed my login details.
Then, I invoke a batch script on the remote server ssh session which then calls other .sh scripts, this step sets the path for various environment variables and defines a lot of hive configurations. At completion of this batch file I can see a "hive>" on the terminal, indicating I can run sql queries now.
Is there any way, I can get Datagrip working in this environment and setup driver location, work directory, home directory, everything on the remote server. And call this batch script from Datagrip itself.

What is even ID when there is uploaded file in FTP IIS 8

I need an Event ID when there is someone who uploads file in my "FTP Server on IIS 8" so I can run a PowerShell script.
I have multiple remote sites that are sending files every time and I want to save automatically the data that they are uploading in my database I already created the program on it and its working but I can't add the PowerShell script in task scheduler because I don't know when it will be triggered.
Can someone help me to solve this?
Thank you in advance.

How to transfer the data from windows7 machine to windows 2003 server using ANT script or batch script?

I am using windows7 machine,I would like to know how to transfer the data from local machine to windows2003 server and create directory in to target machine through ant script and batch script..
Most systems have an admin share defined. Your C: drive is located at \\locahost\C$. Replace localhost with the name of your target system.
You should run net use n: \\servername\c$ to establish a connection. If you are not in a domain, you will need to specify username and a password for the connection.
Once you map it, you can treat it like a local drive in your scripts in most situations. Then use whatever tool you are comfortable with to move the files. robocopy is a good one for this.

How to copy an *.exe file from one computer and paste it to another computer over LAN

For example I have a client-server application, this application often gets updated (it's an exe file). If I download the update on the server machine then the same update should be transfered to the client machines, or vice-versa.
At the moment the update is downloaded on all machines individually. My idea is downloading the update should be done only on the server and I'm planning to make an option in the client to copy the *.exe file (update) directly from the server and paste it on the installation path.
How can I make this happen?
NOTE : the update is a self extracting file.
There is already a technology for achieving this called ClickOnce. The client application can be "published" to a share that is accessible to all the clients, then each time the client is executed a version check is done - if a later version is detected on the share then it is downloaded before execution continues.
You can read more about this here: ClickOnce Security and Deployment. Creating a ClickOnce package and publishing it is a feature already built into Visual Studio, so you do not need to write any code.
You have to write an application that will be split into different parts :
Detect file change either on the client or server machine
Perform the copy of the exe file to server or other clients.
In all cases you can't tell an exe file to update it self.

Backup routine from a Windows 7 machine

Can anyone recommend a program that automatically runs a backup on a given local path to a network destination (just sync, I only need an exact copy of the folder on the network location)? It is important that this program automatically runs the backup process even if the user is not logged in to the windows 7 machine.
Rsync or just network destination, both will work fine.
maybe robocopy will do if you are only on Win7
http://technet.microsoft.com/en-us/library/cc733145%28v=WS.10%29.aspx