title: Replace Program Files with Progra~1 in a shell script
body: <p>I would like to have a script/command that will replace all the occurrences of "Program Files" with the no space Progra~1 win a windows shell script on XP</p>
  
  <p>Is there a way in the XP shell to do this? 
  I have been searching and can't find any examples
  sudo 
  CURRENT_PATH=%PATH%
  NEW_PATH= replace all "Program Files" with Progra~1</p>
  
  <p>I will then use setx to set the new path </p>