flyg Posted January 27, 2011 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
enaiman Posted January 28, 2011 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 script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now