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 :
For more information read these resources :
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:\";
Please change the batch file name and working directory to a proper one. And remember to add an
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