![]() ![]() According to documentation the correct usage is:plink -load test -m commands.txt-m = Read remote commands from a file.Although, I’m questioning what these commands are being used for. But for that, you need to use not nul 2&1pause nul 2&1echo seta 65535pause nul 2&1timeout /t 3 /nobreak nul 2&1echo seta 0timeout /t 3 /nobreak nul 2&1pause nul 2&1) plink -load testThough, you might want to move pause only after plink: (.echo seta 0timeout /t 3 /nobreak nul 2&1) plink -load testpause nul 2&1Alternativelly, as already suggested, rename commands.txt to commands.bat and use it like: commands.bat plink -load testAgain, maybe like this (after moving pause from commands.bat): commands.bat plink -load testpause nul 2&1. ![]() Your code is actually correct, had you used it as a script that generates an input for the plink. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |