Web Authoring: Day 2 Workshop 2

Workshop 2


Before you begin, make sure you are at a DOS prompt (exit Windows if necessary). Make sure you are in the scratch directory on the F: drive.

Part I: Download the WordPerfect file from AFS to DOS.

  1. Login to the Network Server, using Access or telnet.
  2. From the main menu, type
    scan /ahome/inwww/public/www-data
  3. On the SCAN screen, locate the directory
    seminar
    and press Enter, then locate the file
    expense.wpd
  4. Place a "C" (for "copy") next to the filename and press Enter. On the COPY screen, as before, "Name of file to copy" will already be filled in. As before, for "Name of new file", use
    /ahome/userid/public/www-data
  5. Wait for the "File copied..." message, and then press F3 to return to the main menu.
  6. From the main menu, type
    download
  7. When asked for protocol, specify FTP (press F6). On the next screen, you will be told to press Alt-I. Do so. Then press Enter.
  8. When asked for server file name, specify:
    /ahome/userid/public/www-data/expense.wpd
    For micro file name, specify:
    f:expense.wpd
    Also, on this same screen, specify "B" (for "binary"). THIS IS VERY IMPORTANT! Then press Enter.
  9. The download will begin. As the message at the top of the screen will remind you, when prompted for a password, press Alt-W. When the download is finished, press Enter to return to the main menu.
  10. Logout of the Network Server (and quit out of Access, if necessary). You should now be at a DOS prompt again.

Part II: Edit the file, using WordPerfect.

  1. From the DOS prompt, type
    wpf
    (and press Enter) to start WordPerfect.
  2. Press F5 to list files. The current directory (displayed in the message at the bottom of the screen) should be the scratch space on the LAN (F:\SCRATCH\LEHIGH\LUnn). Press Enter to get to the list of files.
  3. On the List Files screen, locate the file expense.wpd
    (move the cursor--the highlight bar--to select this file.)
  4. Press 1 (do NOT press Enter) to retrieve the document.
  5. Edit the document, making any changes that are necessary (insert <HEAD> and <BODY> tags--also making sure to insert the closing </HEAD> and </BODY> tags; add a title, mark the headings with <H1> or <H2> or <H3> tags, as appropriate; add <P> or <BR> tags where needed; and so on).

    (NOTE: You are still in WordPerfect at this point!)

Part III: Save the tagged document as text.

  1. From the WordPerfect editing screen, press Ctrl-F5; from the menu which appears at the bottom of the screen, select "DOS Text" by pressing 1 (do NOT press Enter).
  2. From the next menu that appears at the bottom of the screen ("Save/Retrieve.../Retrieve..."), select "Save" by pressing 1 (do NOT press Enter).
  3. When prompted for the name of the document to save, make sure you change the name from what is displayed to
    expense.htm
    This is to remind you that later, while uploading the document, you will need to rename it to "expense.html" (you can't have a four-letter extension while you are in DOS). Then press Enter.
  4. Now press F7 to exit from WordPerfect. When prompted for "Save Document?", press N to indicate "No" (do NOT press Enter). When prompted for "Exit WordPerfect?", press Y to indicate "Yes" (do NOT press Enter). This should put you back at a DOS prompt.

Part IV: Upload the HTML document to AFS.

  1. Login to the Network Server, using Access or telnet.
  2. From the main menu, type
    upload
  3. When asked for protocol, specify FTP as before (press F6). On the next screen, you will be told to press Alt-I. Do so. Then press Enter.
  4. When asked for server file name, specify:
    /ahome/userid/public/www-data/expense.html
    For micro file name, specify:
    f:expense.htm
    Notice that you are renaming the file as you upload it. (You could upload it as ".htm" and rename it as a separate step afterward, if you so choose--do whichever seems easiest to you.) This time, specify "A" (for "ASCII"); do NOT specify "binary". (HTML files are ASCII text files, while WordPerfect documents are not. This is an important distinction.) Then press Enter.
  5. The upload will begin. Once again, when prompted for a password, press Alt-W. When the download is finished, press Enter to return to the main menu.
  6. Logout of the Network Server (and quit out of Access, if necessary). You should now be at a DOS prompt again.

Part V: Check your work.

  1. Now you can start Windows and run Netscape to view your document. The URL is:
    http://www.lehigh.edu/~userid/expense.html
End of Exercise.

 Home  Back
SDR, 13 Jun 1995.