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.

hide(minimized) then unhide batch file

Featured Replies

Hi all!

I have a little "problem", I would like to hide a batch file then at some moment in it, unhide it. i Explain:

I created a shortcut which starts minimized, ok.

at the end of the launched cmd file, I would like to start another one but àat this time unhided.

.cmd number one: (minimised)

[some code]

::I tried

call %systemdrive%\temp\restard.cmd

::oR

%systemdrive%\temp\restard.lnk (normal windowed link which launches restart.cmd)

but this doesn't work.

This is to remotely install some software, and then at the end of installation, ask the user to restart or not

.cmd number two (restart.cmd): (should be visible)

[some code]

:shutdown

set choice=

SET /P choice=Etes-vous sur(e) d'avoir sauvegard‚ tous vos documents ouverts? (o/n)

if not '%choice%'=='' set choice=%choice:~0,5%

if '%choice%'=='n' goto exit

if '%choice%'=='o' goto shutdown1

if '%choice%'=='N' goto exit

if '%choice%'=='O' goto shutdown1

ECHO "%choice%" n'est pas une entr‚e valide, r‚essayez SVP.

ECHO.

pause

GOTO shutdown

shutdown1

call "%SYSTEMROOT%\system32\shutdown.exe" -r 4

:exit

is this possible?

NB: If this can help, I'm working on W2k.

Try this

.cmd number one

rem your code here
start %systemdrive%\temp\restart.cmd
exit

.cmd number two (restart.cmd)

rem your code here
:shutdown
set choice=""
SET /P choice= (o/n)
if /i not "%choice%"=="o" goto exit

:shutdown1
start "%SYSTEMROOT%\system32\shutdown.exe" -r 4

:exit
exit

  • Author

hi!

the "start %systemdrive%\temp\restart.cmd" was enough!

thx a lot!

I used the call function or just %systemdrive%\temp\restart.cmd, which didn't work.

I think I have plenty of things to learn about batch files ;-)

It works perfectly (will retry to be sure ;-) )

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.