Willow Posted November 5, 2010 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
Developers Jos Posted November 5, 2010 Developers 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.
Willow Posted November 5, 2010 Author 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)
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