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.

Sleep command don't work

Featured Replies

This is a part of a scritp .CMD:

copy d:\files\setup.exe c:\temp\setup.exe

start c:\temp\setup.exe /s

(I need a delay here)

del c:\temp\setup.exe

reg delete (the path here...)

========

I need this delay because when it goes to delete the setup.exe in the temp dir and the reg of the software, the setup is in execution! The command lines don't find the path of the reg because he is not created in the moment (the seput is running).

And the sleep command don't run: sleep' is not recognized as an internal or external command.operable program or batch file

:wacko::blink:

You could try this

ping 127.0.0.1 /n 2 > NUL

Where 2 = a number of times to ping. Bit cheap but it works :)

Alternatively you could remove the start from "start c:\temp\setup.exe /s"

That way the batch script won't continue until setup.exe has finished

Edited by Deman

  • Author
You could try this

ping 127.0.0.1 /n 2 > NUL

Where 2 = a number of times to ping. Bit cheap but it works :)

Alternatively you could remove the start from "start c:\temp\setup.exe /s"

That way the batch script won't continue until setup.exe has finished

Oh yeah!!!! Perfect!!!! :thumbup:rolleyes::lol::w00t: Thanks!!!!

I need this delay because when it goes to delete the setup.exe in the temp dir and the reg of the software, the setup is in execution!
Have you thought about changing the script to use an appropriate switch with the Start Command
copy d:\files\setup.exe c:\temp
start "" /wait c:\temp\setup.exe /s
del c:\temp\setup.exe
reg delete (the path here...)

Using /wait will mean that the delete command will not be invoked until the setup has completed.

Yzöwl is right, even

start /w "" "c:\my program\setup.exe" /s

will okay ;)

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.