Error running BAT file with a space in the name

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 9 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
Double Reddog
Posts: 14
Last visit: Mon Oct 16, 2017 8:17 am

Error running BAT file with a space in the name

Post by Double Reddog »

Just purchased primalscript 2014 and got the following error when running a BAT file with a space in the name. The name of the BAT file is "Hello There.bat".

The BAT file runs fine from a CMD prompt. It also runs fine from within primalscript if the space is replaced with an underscore (or other character). The error is:

'Hello' is not recognized as an internal or external command,
operable program or batch file.

It seems that primalscript is not running the BAT file enclosed with double quotes. Is there a way around this without having to rename BAT files with spaces in the name?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Error running BAT file with a space in the name

Post by jvierra »

Hi - I was able to validate your issue. Yes it does seem to do that.

Can you post this in the Customer support forum for PrimalScript. This forum is really for scripting issues and not product or customer support.

Thank you.
This topic is 9 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked