Jump to content

@sw_hide problem


flyg
 Share

Recommended Posts

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 by flyg
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...