Home > Articles > Programming > C#

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Testing the Program

Bring up a DOS command window and use your favorite editor to add (copy and paste) the bot code above, as shown in Figure 5. After adding the code and saving the file, compile the program (see Figure 6).

Figure 5 Using Notepad to edit the vampire bot (vbot.cs).

Figure 6 Compiling the vampire bot (csc vbot.cs).

Execute the program by simply typing its name (see Figure 7).

Figure 7 Running the vampire bot (vbot).

Enter a URL and destination folder at the prompts. For this example, type the following:

NOTE

Make sure that you've created this destination folder on your computer.

After your program finishes executing, your folder should have the images shown in Figure 8.

Figure 8 Contents of the destination folder after the vampire bot finishes.

  • + Share This
  • 🔖 Save To Your Account