Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

%reboot% query

Featured Replies

I'm using the command %reboot% to reboot my server and then to resume where it left off on reboot and logon.

This works fine for the first reboot.

i.e. step1 runs, reboots, logon, step2 runs, starts reboot process but also starts running step3. The reboot completes and step3 gets killed by the reboot.

step3 seems to restart after this reboot (as long as it didn't finish before the reboot completed) but you end up with a messy install.

I have created a simplified config to test this and it always has the issue with the second %reboot% and not the specific command.

I have attached a copy of the WPI Logfile, and as you can see @ 11:07:41 it ran "shutdown -r -f -t 30"

It then followed that up at 11:07:44 by running step3.cmd and trying a new shutdown.exe (which failed because it was already running a shutdown.exe from 11:07:41)

I have several %reboot% required in my final script and would appreciate any pointers that can help.

TIA

Mark

config.js


pn=1;
prog[pn]=['Application 1'];
uid[pn]=['APPLICATION1'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"E:\\Install\\tidyup\\step1.cmd"'];
cmd2[pn]=['%reboot% 30'];
pn++;

prog[pn]=['Application 2'];
uid[pn]=['APPLICATION2'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"E:\\Install\\tidyup\\step2.cmd"'];
cmd2[pn]=['%reboot% 30'];
pn++;

prog[pn]=['Application 3'];
uid[pn]=['APPLICATION3'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"E:\\Install\\tidyup\\step3.cmd"'];
cmd2[pn]=['%reboot% 30'];
pn++;

Step1.cmd

@echo off
echo This is step 1
pause

Step2.cmd

@echo off
echo This is step 2
pause

Step3.cmd

@echo off
echo This is step 3
pause

WPI_Log.txt

Have you tried using:

'%reboot%'

instead of

'%reboot% 30'

Giving your reboot command 30 seconds seems a bit much to me. Make it immediate or substitute 5 seconds.

  • Author

I just had %reboot% 30 in there for the purposes of testing this and it was default.

Have lowered the setting (%reboot% 3) and also entered a sleep command of %sleep% 4 (i.e. one second longer).

This has given me a workaroumd but am still at a loss as to why it should work for the first reboot and not subsequent reboots.

Thanks, maybe I should just use %reboot% and the problem will go away or not be noticed.

Thx

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.