SET DIR=%~dp0 taskkill /FI "status eq running" /IM dn.exe xcopy "%DIR%script\dn" "%DIR%dn\dn.ini" /y start script\dn.vbs start dn\dn.exe pause
Let me explain exactly what im trying to do in case im doing it wrong:
first sets current directory to %dir% so i can place it anywhere
then it closes dn.exe
then copys over dn.ini which is used by dn.exe
then runs a .vbs script which just simulates a keypress
then it starts dn.exe again
I am not a programmer so I don't know if there is a real simple fix. But I was wondering if i could move my copy command and create a call to it to ensure that it executes. Would that work and how would i do it?
This post has been edited by finshore: 17 September 2009 - 04:25 PM



Help
Back to top








