Code:

$CURRENTPATH = "C:\Some Sources (KIX)\WIP"
$CURRENTITEM = "test.kix"
$sItem = $CURRENTPATH + "\" + $CURRENTITEM
Run '%comspec% /c "$sItem"'


The problem resides in the path, if I put the file in C:\Documents and Settings\test.kix the command works fine. But from the path I specified in the code it does not. You get a DOS error saying can't find "C:\Some"

[edit]
Les: Specifying the "start" part of the code doesn't get me anywhere at all.
[/edit]
[edit2]
Like I said before it's due to the ()'s. If you goto cmd.exe and specify cmd /? it will tel you so in the last line.
[/edit2]


Edited by apronk (2006-02-22 07:08 PM)