Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

CMD: OPTION to jump


Recommended Posts


Hi!!!! I'm thinking that it would be nice if the batch could skip the ECHO of the updates not installed. For example, if i put some hotfixes for x64 architecture on a x86 S.O., actually the installation is skipped, but the ECHO not. Is it feasible?

Link to comment
Share on other sites

  • 1 month later...

Hi guys! taking this script:

@ECHO OFF
COLOR F9
ECHO=_%~1|FINDSTR/X "_-? _/?">NUL 2>&1||GOTO Error
SETLOCAL ENABLEEXTENSIONS
SET "_="
PUSHD %~dp0

FOR /R %%A IN (ApplicationSetup.EXE) DO (
SET _=T
ECHO=Installation of %%~nA...>>install.log
>NUL PING -n 4 127.0.0.1
:: Extracting ApplicationSetup file
"%%A" /S
:: Killing processes that automatically start
bin\KillProcess Setup.exe
bin\KillProcess InstallApp.exe
:: Start Silent Installation of the extracted files
%SystemDrive%\ApplicationSetup\%%~nA\Setup.exe /S
:: Delete Folder where ApplicationSetup is extracted
RD /S /Q %SystemDrive%\ApplicationSetup)

IF NOT DEFINED _ GOTO Error
:: ECHO=>>install.log
ECHO=Install complete.>>install.log
>NUL PING -n 4 127.0.0.1
EXIT
GOTO :EOF

:Error
ECHO=Error.>>install.log
>NUL PAUSE

So, for you is it correct? Is it better to add "START /WAIT" at the begin of every command?

This script works, but i want to be sure that it can't give me errors.

Thank you in advance!!

Edited by Caml Light
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...