Yeah registry values had me a bit stumped, I managed to get my script working, my issue was that the batch file I called seemed to make the whole script loop, I ended up copying it to a network share and running it from there, it now works, v strange. Thanks for your post I'll run wth that next...
Ok I have eliminated the For Next loop and just read in the defaultprofile value from HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\
(was being slightly over complicated!)
looks like it's definately the call to the batch file causing the...
I have a script that writes a .reg file and a batch file to import the .reg file. After the batch file has been writen I call it to do the import (it's a REG_BINARY key so I though regedit would be the easiest way..)
However when the script runs it loops and the batch file runs several times...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.