Willow 0 Posted November 5, 2010 I am attempting to back a SQL Server database via @compspec and OSQL. When I do not use the @sw_hide syntax, the script runs, however I cannot determine why it will not run with @sw_hide. This works: run(@Comspec & " /c osql -E -Q ""backup database Master TO DISK = 'c:\backups\master.bak'") This does not work, and does not produce an error message. run(@Comspec & " /c osql -E -Q ""backup database Master TO DISK = 'c:\backups\master.bak'", @SW_HIDE) Thanks Share this post Link to post Share on other sites
Jos 2,208 Posted November 5, 2010 Its defined as second parameter in stead of third. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
Willow 0 Posted November 5, 2010 Thanks for the hint Jos! This now the working code: run(@Comspec & " /c osql -E -Q ""backup database Master TO DISK = 'c:\backups\master.bak'", "",@SW_HIDE) Share this post Link to post Share on other sites