flyg 0 Posted January 27, 2011 (edited) Hi, I've noticed that when i add @sw_hide or even minimise the output from my batch file isnt written as expected. If i remove these @ commands then it works fine. example my batch file has reg add hklm\software\abc /v myvalue /f /d 1 in autoit i run RunWait(@ComSpec & " /c " & "c:\temp\my.bat", @sw_hide) while the batch file runs it never outputs the reg value. I realise autoit can write to the registry direct itself but this is just an example. If i replaced the reg with an echo "1" > test.txt etc that wouldnt work either if i made the process hidden. What am i doing wrong? Edited January 27, 2011 by flyg Share this post Link to post Share on other sites
enaiman 16 Posted January 28, 2011 You are putting @SW_HIDE instead of workingDir. This works: RunWait(@ComSpec & " /c " & "dir c:>c:\test.txt","", @sw_hide) SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example scriptwannabe "Unbeatable" Tic-Tac-ToePaper-Scissor-Rock ... try to beat it anyway :) Share this post Link to post Share on other sites