<?xml version="1.0" encoding="windows-1252"?>
<node id="1010859" title="Re^3: No command window output when running script" created="2012-12-29 18:26:09" updated="2012-12-29 18:26:09">
<type id="11">
note</type>
<author id="524150">
syphilis</author>
<data>
<field name="doctext">
&lt;i&gt;Cd doesn't return a value so nothing is output with this example&lt;/i&gt;&lt;br&gt;&lt;br&gt;Interesting ... and there's probably a good reason for that, but I don't know what it is.&lt;br&gt;Certainly, the behaviour you're seeing doesn't conform to the documentation I get for cd, which begins with:
&lt;c&gt;
C:\_32\C&gt;cd /?
Displays the name of or changes the current directory.

CHDIR [/D] [drive:][path]
CHDIR [..]
CD [/D] [drive:][path]
CD [..]

  ..   Specifies that you want to change to the parent directory.

Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.
.....
&lt;/c&gt;
Perhaps you're running in a different shell (I use cmd.exe), or perhaps your cmd.exe shell finds a different 'cd' implementation to run.&lt;br&gt;To force your cmd.exe shell to use its own implementation, I think you just need to involve a shell metacharacter in the command - eg:
&lt;c&gt;
cd &lt;nul
&lt;/c&gt;
Does that command print out the current directory for you ?
&lt;br&gt;&lt;br&gt;(Admittedly this has nothing to do with the subject you initially raised ... but I find it a little bit interesting.)
&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Rob</field>
<field name="root_node">
1010796</field>
<field name="parent_node">
1010856</field>
</data>
</node>
