[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The following procedure describes how to create a batch file called cleanup.bat. This file is called by the Node Release task in the DemoJob example. cleanup.bat contains two commands: the first command copies data from the compute node to a file on the head node; the second command deletes the file on the compute node.

To create cleanup.bat
  1. Open Notepad.

    Click Start, point to All Programs, click Accessories, then click Notepad.

  2. Type following text, where \\headnodeR2\c$\Users\Public\taskDemo.bat is a shared location that is accessible to all compute nodes:

    type prep.txt >> \\headnodeR2\c$\Users\Public\taskDemo.txt
    del prep.txt
    
  3. Name the file as cleanup.bat. Be sure to select All Files under Save as type.

    Important

    Save the file to a shared location that is accessible to all compute nodes for example, \\headnodeR2\c$\Users\Public\cleanup.bat.

Continue to Step 2: Create and Submit DemoJob.