So the command file is being made redundent by the generate file. After changing that file it works beautifully. The problem actually was not the command file it was the generate file in the scripts folder. The layout is like the wpi folder g:\wpi.hta g:\wpi.cmd g:\install\ g:\themes\ And so on... Anyway it works now.