FogBugz 7 Online Help

Perforce Trigger No Spaces

Entering the following Perforce trigger

FogBugzTrigger change-submit //... "cscript.exe C:\Program Files\Perforce\logBugDataP4.vbs %changelist% %serverport% %client%"

generates this error:

Input Error: There is no file extension in "C:\Program".

This is because the path contains a space (the path is breaking on the first space encountered, after "Program").  To fix this in Windows, you can use the Windows 8.3 filename, which has no spaces:

If your filename has other spaces in it, or the above do not work, you can find the 8.3 filename of any directory by doing the following:

  1. Go to Start > Run
  2. Type "cmd" and click "OK"
  3. Type "cd c:\sub\folders" to the folder BEFORE the one you want to check the filename for (e.g. to find the filename for "C:\Program Files", type "cd C:\"
  4. Type "dir /x" and look for row with the folder name you want.  In the same row is the 8.3 filename (it should look something like "PROGRA~1")

You'll have to do this for each directory in your path that has a space in the title.  So, for example, to find the 8.3 path of "C:\Program Files\Perforce 2005.2" you would do the following:

  1. Type "cd c:\"
  2. Type "dir /x"
  3. Look for "Program Files" and find that it's 8.3 path is "PROGRA~1"
  4. Now I have the path "C:\PROGRA~1"
  5. Type "cd c:\PROGRA~1"
  6. Type "dir /x"
  7. Look for "Perforce 2005.2" and find that it's 8.3 path is "PERFOR~1"
  8. Now I have the path "C:\PROGRA~1\PERFOR~1"
  9. Enter that path in the trigger script.

Back to instructions for setting up Perforce triggers with Perl

Back to instructions for setting up Perforce triggers with VBScript