Tag: Windows Batchfile

Set date and time of a Linux device from a Windows batchfile

I had a client with Linux device that whose clock is not as reliable as it should be, running a time-critical application. As a workaround fix I wrote a Windows batchfile to update the Linux date and time, and  he

Tagged with: ,

Relative batchfile paths

In a previous post “Batch file to perform SSH commands and transfer files from Windows to Linux” I used a batchfile to call on plink.exe as follows: C:Pathplink.exe This is all well and good, but if this path changes for whatever

Tagged with: , ,

A batchfile to check the status of Windows services and start them automatically if they have stopped

I deal with several applications on a day to day basis, and I was having problems with one in particular it’s associated windows services stopping for no tangible reason. I therefore devised a batchfile to check the status of each

Tagged with: ,

Batch file to perform SSH commands and transfer files from Windows to Linux

At my place of work, I routinely have to update firmware and database files from our office Windows PCs to ARM linux devices. This used to involve connecting to the mini PC using PuTTY, killing a process, then logging in

Tagged with: , , , ,

Automatic MSSQL 2008 Backup Batchfile

I was asked to create a simple process for backups to a MSSQL database. After a little searching around online I came up with a Windows batchfile, and then used scheduled tasks to run it weekly: set ToDaysDate=%date:~3,2%%date:~0,2%%date:~6,4% “C:Program FilesMicrosoft

Tagged with: , ,