Jan Vooijs wrote:@NoahPhense,
I notice an error in your batch file (or is it on purpose?)
C:\pb\pb4\compliers\pbcompiler %1 /DEBUGGER
Ieh ?? "\compliers" ? Should be "\compilers"
Jan V.
Yeah that was a typo. But wasn't the cause of the path not working.
Because that is in the second half of the batch. The first half was calling
correctly.
I was following these instructions from this bluez page, located here:
http://www.xs4all.nl/~bluez/datatalk/pu ... #2_unicode
; run_unicode.bat
;
compilers\pbcompiler %1 /DEBUGGER /UNICODE
if errorlevel 1 goto error
compilers\pbcompiler %1 /DEBUGGER
if errorlevel 1 goto error
goto skip
:error
pause
:skip
The above would have to be added to the 'tools' and assigned a hotkey in the PB IDE. For that do this:
- 1. tools / config tools / new
2. commandline = path + run_unicode.bat
3. arguments = %FILE
4. working directory = %PATH
5. name = whatever you like
6. menu or shortcut = whatever you like (I use Alt+U)
This works if I change the %FILE to %TEMPFILE, but I can't use it that
way. I need it to RUN from the directory where the actual pb source is
because I have too many additional files, etc..
The problem is when I use just %FILE, it does not handle the spaces
correctly.
i.e.
******************************************
PureBasic v4.00 (Windows - x86)
******************************************
Compiling C:\Documents
The file 'C:\Documents' isn't found or can't be opened !
Loading external libraries...
Error: Syntax error!
Press any key to continue . . .
- np