Skip to main content
Known Participant
September 12, 2012
Answered

#include does not accept spaces!

  • September 12, 2012
  • 2 replies
  • 1738 views

Hi again!!

Trying to execute a script with the #include command.

It works great when the path does not conatin any spaces but else it fails and say that it cant find the file. Even networkshares work without spaces.

You may think that i have not tried to enclose it in " " signs but i actually have tried that with no success

#include Y:\scripts\ClintEastwood\script.jsx //WIN!!

#include Y:\scripts\Clint Eastwood\script.jsx //FAIL!!

#include 'Y:\scripts\Clint Eastwood\script.jsx' //FAIL!!

#include "Y:\scripts\Clint Eastwood\script.jsx" //FAIL!!

Anyone have an idea on how to solve this, i will give you a goldstar if you do :=)

// Mr Clint

This topic has been closed for replies.
Correct answer Muppet Mark

Don't quote and replace the space with %20

2 replies

CarlosCanto
Community Expert
Community Expert
September 12, 2012

try this

'Y:/scripts/Clint Eastwood/script.jsx'

Muppet MarkCorrect answer
Inspiring
September 12, 2012

Don't quote and replace the space with %20

Known Participant
September 13, 2012

Thanks again Muppet!!

Inspiring
September 14, 2012

OMG Sorry!! I Usually don't forget!

Oh, you can mark as correct aswell, just not helpful! Lets do that instead

Here is the star Sheriff!

// Mr Cllint!


Thanks I will cut it out and stick it to the beer fridge door…