Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: execute command at boot

25 Mar 2015   #1
win7dio

w7
 
 
execute command at boot

Hi,

I would like to execute a command at boot and repeat it until it succeeds. Does anyone know how I can achieve that ?

For the moment, I run the command in the startup folder, so it does run just after user connection but, as it is a connection demand to another computer by ssh, if the other computer is not ready yet, the command just fails and stop bother. I'd like it to retry until connection is established.

So is there a service I can use or should I write a script right away ?

Nota : I know nothing about VBScript.. yet.

Thank you


My System SpecsSystem Spec
.
25 Mar 2015   #2
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

In which software do you run ssh command?
My System SpecsSystem Spec
25 Mar 2015   #3
win7dio

w7
 
 

In putty, why ?
My System SpecsSystem Spec
.

25 Mar 2015   #4
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by win7dio View Post
In putty, why ?
Because i need to know if it's scriptable.

Did you access the remote side like this ? https://www.youtube.com/watch?v=Ld9MPbkVLrc
Afterwards you did put it in your "startup group"?
My System SpecsSystem Spec
25 Mar 2015   #5
win7dio

w7
 
 

Quote:
Did you access the remote side like this ? https://www.youtube.com/watch?v=Ld9MPbkVLrc
Afterwards you did put it in your "startup group"?
Yes !

I registered a session and load it with a link placed in the startup group :

Code:
plink.exe -T -load "session"
Since my first post I installed puttytray which adds 2 options in the connection tab :

1 - reconnect on failure
2 - reconnect at startup

But it is not enough as it tries to conect a few times - 3 or 5, and dismiss. The number of retries does not seem to be configurable.
My System SpecsSystem Spec
Reply

 execute command at boot




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Start Command Prompt and automatically execute a few commands
I am learning a programming language, and I frequently use command prompt to compile source codes, but every time I start command prompt I need to manually cd to the correct directory, and then I like to run cls to keep the window clean. I have looked around, but I'm not sure how to phrase a google...
Software
Got this when booting, "remove boot execute record unsuccessfully"...
after the boot screen i got this message after that it continue normally but usually i didn't get that i have no idea what's the problem can anyone help?
General Discussion
Trying to locate Boot from CD Command
I am trying to run a Windows Defender burned cd on a computer that will not start windows 7. On the advanced boot options screen I do not see "Boot from a cd/dvd" as instructed by Defender. Can someone tell me where to find this option please? Thanks
BSOD Help and Support
How do I make a DOS / command prompt boot CD?!?
I've looked everywhere on the web, and everything seems to apply to Windows 98 or earlier, and people with floppy disks! I need a simple CD or USB drive (CD preferably as USB booting I can never get to work) so I can flash a BIOS. The computer has no flash function in BIOS setup, and no windows...
General Discussion
Execute Last Command
scenario : 1. lmb to select a file or folder. 2. rmb to display context menu and choose 'rename'. 3. type new name. 4. lmb to select another file or folder 5. ... is there a way to program a key or a mouse button to automatically execute step 2 above? Or perhaps it's already one of my...
General Discussion
Can you boot from the command line?
This is an off topic thread because it concerns WinXP/2000 dual boot machine which are not booting. I can get to the Windows\ and Winnt command line of each but trying to figure out if I can boot from there. If I try to boot regularly I get "missing operating system" Im trying the Windows 2000...
Chillout Room


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:22.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App