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.

converting batch command to runonceex

Featured Replies

Can someone help convert the statement below into a runonce statement.

FOR /f %%f in ('dir/b/s %CDROM%\Hotfixes\Type1\*.exe') DO Start /wait "" "%%f" /z /n /o /q

Or should I just put it in a batch file and run the batch


Well you could compile a AutoIt script to do that fuction...some thing like the below code should do all of it if not the bulk.

; Install Type 1 Hot Fixes
$search = FileFindFirstFile ( @ScriptDir & "\Type1\*.exe" )
If $search <> -1 Then
While 1
 $exe = FileFindNextFile ( $search )
 If @error Then ExitLoop

 RunWait ( @ScriptDir & "\Type1\" & $exe & " /z /n /o /q" , "" , @SW_HIDE )
Wend
FileClose ( $search )
EndIf

; Install Type 2 Hot Fixes
$search = FileFindFirstFile ( @ScriptDir & "\Type2\*.exe" )
If $search <> -1 Then
While 1
 $exe = FileFindNextFile ( $search )
 If @error Then ExitLoop

 RunWait ( @ScriptDir & "\Type2\" & $exe & " /Q:A /R:N" , "" , @SW_HIDE )
Wend
FileClose ( $search )
EndIf

Exit

humm untested but some thing like this should work...and be fairly expandable to include other future hotfix types.

Func _HotFix( $dir , $switch )
$search = FileFindFirstFile ( @ScriptDir & $dir & "*.exe" )
If $search <> -1 Then
 While 1
 $fix = FileFindNextFile ( $search )
 If @error Then ExitLoop

 RunWait ( @ScriptDir & $dir & $fix & $switch , "" , @SW_HIDE )
 Wend
 FileClose ( $search )
EndIf
EndFunc

; HotFix Type 1
_HotFix ( "\Type1\" , " /z /n /o /q" )

; HotFix Type 2
_HotFix ( "\Type2\" , " /Q:A /R:N" )

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.