As others say they are bunch of command line commands so do not try to run them in query analyzer.
instead make a batch file and put them in there and run the batch file.
And if you want to run the batch file from client sides of an ASP.NET web form then consider using this code in your webform :
System.Diagnostics.Process.Start("backup.bat");
For more information read these resources :
http://forums.asp.net/t/164085.aspx/1[
^]
http://support.microsoft.com/kb/555134[
^]
After your comment :
Please try this one :
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = @"cmd.exe";
process.StartInfo.Arguments = @"/k f:\cpy.bat";
process.StartInfo.WorkingDirectory = @"f:\";
process.Start();
Please change the batch file name and working directory to a proper one. And remember to add an
Exit
command at the end of your batch file.
If it helped you please mark it as an answered question or vote it up.
Hope It Helps