Currently when I hit run in the IDE in windows I get a "PureBasic_Compilation0.exe" created and run from "C:\Users\myId\AppData\Local\Temp"
I can't see a way to change the location of the file from windows temp to something else. Is this possible? eg "C:\pb_temp\
Like many other people I have some false positive on anti virus and I'd like to compile to a different temp location that I can add to the exclusion list of the AV software. I don't really want to exclude windows temp.
Is this possible?
changing the debug compile location?
changing the debug compile location?
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Re: changing the debug compile location?
There is an option in the compiler settings:
"Create temporary executable in the source directory"
"Create temporary executable in the source directory"
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: changing the debug compile location?
That only works if the code was stored to disk prior to compiling.
I asked for a feature to define the temp path to avoid antivirus issues.
I asked for a feature to define the temp path to avoid antivirus issues.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: changing the debug compile location?
I also miss that function a bit. Is something for features request
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: changing the debug compile location?
Thank you !!!
This will work for me
This will work for me
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Re: changing the debug compile location?
On windows you could create a batch file "start_purebasic.cmd":
This way you change the environment variables for temporary directory.
This works for me!
Some hints:
All tools which are called by the PureBasic IDE will then also use this new temporary directory.
If PB programs will be started by the IDE then the PB command GetTemporaryDirectory() will return this new temporary directory.
Code: Select all
@echo off
setlocal
set TEMP=Path\To\New\PB_TEMP_DIRECTORY
set TMP=%TEMP%
start "Call PureBasic IDE" /B "Path\To\PureBasic\PureBasic.exe"
endlocal
goto :EOF
This works for me!
Some hints:
All tools which are called by the PureBasic IDE will then also use this new temporary directory.
If PB programs will be started by the IDE then the PB command GetTemporaryDirectory() will return this new temporary directory.
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
PB Last Final / Last Beta Testing