Jump to content
Sign in to follow this  

@sw_hide problem

Recommended Posts



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.


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 by flyg

Share this post

Link to post
Share on other sites

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 :)

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.