how to Search and find Win32 Batch Shutdown\Probkup

Posted by Adrian.wright on 04-Mar-2009 15:49

Hi

Im trying to create a short simple script which will search a certain path(s) and then if .LK is found then either preform a Probkup or a proshut

the part im having the problem with is trying to pass\read the created lk.txt file variables\database name into probkup or proshut,

I know it is simple but I really seem to be struggling with this some reason..

Contents of Batch File

for /f "tokens=*" %%a in ('dir /b *.lk') do echo>>lk.txt %%a

Now for Each line in lk.txt i want to it preform either a probkup or prohut,

many thanks in advance

All Replies

This thread is closed