|
Answer» Hello guys.
I'm QUITE a bit new in this batch stuff.
So, what I need is a batch that kill a process, replace two files, run a program and exit the batch.
What I've got so far is this:
taskkill /f /im vpngui.exe /t replace "C:\VPN_Irapida_Instalar\IPSEC_Irapida.pcf" "%programfiles%\Irapida\IPSEC\Profiles" replace "C:\VPN_Irapida_Instalar\IPSEC_IrapidaHOST.pcf" "%programfiles%\Irapida\IPSEC\Profiles" %programfiles%\Irapida\IPSec\vpngui.exe exit
But I'm getting some errors since the promp won't exit until I close the vpngui.exe.
Can you guys help me?
Thanks a lot in advance.
Cya
Code: [SELECT]start "" "%programfiles%\Irapida\IPSec\vpngui.exe" 20 mins! How's that for service?
Thanks, Ill will try it.
But, I didn't get the service part
Thanks Or better, is it POSSIBLE to make something like it?
1- The batch close the process 2- CHECK if there is the C:\VPN_Irapida_Instalar\IPSEC_Irapida.pcf file. 2.1 - If there is, replace it to %programfiles%\Irapida\IPSEC\Profiles 2.2 - If not, download it from a server, save it to an folder (showing the progress) 2.2.1 - replace it to %programfiles%\Irapida\IPSEC\Profiles 3- Prompt the user 3.1- Success, Close the program? Y/N 3.2- Error, try to call your admin.
Is it possible?
Thanks a lot in advance. Now I've got the service part actually 1:20min service. But I really APPRECIATED it.
CYAAnybody? Please?
|