Jump to content

Recommended Posts

Posted (edited)

OK, I've had a couple of very late working nights, so I must be missing something painfully obvious here ... In my install script, I have the following chunk at the end ...

for /D %%i in (*) do (
%%i\installit.cmd %%~ni %DIR%%%i %KEY%
if exist "%DIR%%%i\finishup.cmd" REG ADD %KEY%\%%~ni /V 99 /D "%DIR%%%i\finishup.cmd %DIR%%%i"
if exist "%DIR%%%i\Application.html" copy /y "%DIR%%%i\Application.html" "%systemroot%\Config\%%i.html"
)

echo "OK - all done"
pause

%DIR% and %KEY% are both set higher up. The problem is that it never reaches the "OK - All done" echo statement. I see the last copy command just fine, and then the batchfile just ends. It doesn't do the expected Pause to hit any key, just returns to the prompt.

I know it's going to be a forehead slapper, but I don't see it just now through my blurred vision ...

D.

[Edit - Putting it into the Programming forum - thanks. Hrm, how do I remove/move this thread ?]

Edited by Halfwalker

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...