|
|
|
|
Strumenti |
21-11-2017, 21:31 | #1 |
Member
Iscritto dal: Jan 2016
Messaggi: 45
|
Chiudere programmi contemporaneamente con file batch
Ciao!
Non sono assolutamente esperto in materia, quindi vi chiedo di far finta di parlare con un bambino Allora io ho questo codice (inutile che dico cosa fa che lo sapete ): schtasks /run /TN "MSIAfterburner" schtasks /run /TN "HWiNFO64" cd C:\Giochi\Mass Effect Andromeda start MassEffectAndromeda.exe Allora io vorrei aggiungere che quando chiudo mass effect, allora si chiudano automaticamente anche msi e hw. Come potrei fare? Grazie |
22-11-2017, 08:37 | #2 |
Senior Member
Iscritto dal: May 2005
Messaggi: 8685
|
Codice:
START /WAIT Eseguibile.exe TASKKILL /IM NomeProcesso_1.exe TASKKILL /IM NomeProcesso_2.exe
__________________
. Thread Ufficiali: EasyCrypt ~ Old Files Manager ~ OSD Clock The real me is no match for the legend . |
22-11-2017, 08:53 | #3 | |
Member
Iscritto dal: Jan 2016
Messaggi: 45
|
Quote:
Sarebbe cosi: schtasks /run /TN "MSIAfterburner" schtasks /run /TN "HWiNFO64" cd C:\Giochi\Mass Effect Andromeda START /WAIT MassEffectAndromeda.exe TASKKILL /IM "MSIAfterburner" TASKKILL /IM "MSIAfterburner" Se la risposta è si, oltre a rimanere cmd finchè non lo chiudo, msi e hw non si chiudono quando chiudo mass effect ps. non me ne intendo EDIT: dimenticavo che sono su win10 |
|
22-11-2017, 09:43 | #4 |
Senior Member
Iscritto dal: May 2005
Messaggi: 8685
|
Sì rimane aperto, è normale e non devi chiuderlo altrimenti non serve. Tralasciando che hai scritto due volte "MSIAfterburner" in TASKKILL ti ho scritto il nome del processo, quindi controlla nel Task Manager come si chiama. Ad esempio:
Codice:
TASKKILL /IM MSIAfterburner.exe Codice:
TASKKILL /IM /F MSIAfterburner.exe
__________________
. Thread Ufficiali: EasyCrypt ~ Old Files Manager ~ OSD Clock The real me is no match for the legend . |
22-11-2017, 17:47 | #5 |
Member
Iscritto dal: Jan 2016
Messaggi: 45
|
schtasks /run /TN "MSIAfterburner"
schtasks /run /TN "HWiNFO64" cd C:\Giochi\Mass Effect Andromeda start /wait MassEffectAndromeda.exe taskkill /im MSIAfterburner.exe taskkill /im HWiNFO64.exe Cosi funziona. Ma c'è un modo per non dover ogni volta utilizzare tasto destro e esegui come amministratore? (senza toccare le impostazioni di windows ovviamente) |
22-11-2017, 20:21 | #6 |
Senior Member
Iscritto dal: May 2005
Messaggi: 8685
|
Fai un collegamento al .bat sul desktop. Nelle proprietà del collegamento imposta l'esecuzione come amministratore.
__________________
. Thread Ufficiali: EasyCrypt ~ Old Files Manager ~ OSD Clock The real me is no match for the legend . |
22-11-2017, 22:18 | #7 |
Member
Iscritto dal: Jan 2016
Messaggi: 45
|
eh ci ho pensato e ho provato ma non va
|
23-11-2017, 09:17 | #8 |
Senior Member
Iscritto dal: May 2005
Messaggi: 8685
|
Modifica lo START e togli CD
Codice:
START "" /B /WAIT "C:\Giochi\Mass Effect Andromeda\MassEffectAndromeda.exe"
__________________
. Thread Ufficiali: EasyCrypt ~ Old Files Manager ~ OSD Clock The real me is no match for the legend . |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 21:56.