Getting error in my script

Recommended Posts

kpu 0

kpu 0

When I change $path to = @TempDir & "\temp\" I get the following error on the second time around. The file Classes.nfo is basically a text file with regkeys taht I'm exporting. If I change $path to just "" so no change, it works fine when I run it from the same directory classes.nfo is in.

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=YDoesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post

Link to post

Share on other sites

kpu 0

kpu 0

On the second loop in the "While 1" It reads the file line in the classes.nfo and exports regkeys until there are no more lines. So on the second loop it errors. It only export 1 file "export1.reg" then errors out and dies.

Share this post

Link to post

Share on other sites

ken82m 1

ken82m 1

Try this, I changed the line where you set $cmd_export nfor my testing. You'll probably have to play with that again. Other than that this should work for you, I was able to export three keys, no errors.

Share this post

Link to post

Share on other sites

seandisanti 1

seandisanti 1

Try this, I changed the line where you set $cmd_export nfor my testing. You'll probably have to play with that again. Other than that this should work for you, I was able to export three keys, no errors.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post

Link to post

Share on other sites

seandisanti 1

seandisanti 1

I found it! It was in another part of my code. For some reason it would error on the line I mentioned, but it was actually because of a way I was closing another File...

Thanks for your help!

cool. glad you got it working...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz