dev-c++: circumvent execute access rights on temp dir

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Dec 2007
Posts: 17
Reputation: White-Gandalf is an unknown quantity at this point 
Solved Threads: 3
White-Gandalf White-Gandalf is offline Offline
Newbie Poster

dev-c++: circumvent execute access rights on temp dir

 
0
  #1
Dec 17th, 2007
Introduction:

I already tried to post this on the dev-c++ - forum at sourceforge, but didn't check for the far too low frequency at that forum (about two questions per week). Thus i tried t find a better visited one and found this here.

I use:

Dev-C++ 4.9.9.2
Windows XP/SP2
example program not applicable (an empty c file suffices)

----

Question:

Has anybody an idea of how to configure the path for temporary batch files in Dev-C++?
So, that it can point to an other dir than the default temp dir of the user?

----

Where it comes from:

The Dev-C++ - IDE in the default configuration needs "execute" access rights on the temp directory to create and execute a batch file for the invocation of make.
I am dedicated to stop the necessity of setting execute access rights on the global temp directory for the user, because this violates one layer of user protection against malware or respectively hinders using the internet while programming.

----

Background:

Well: Since about 15 years, Linux as well as Windows NT deliver the possibility to configure access rights in a way that users MAY protect themselfs against an exponentially growing mass of malware (as long as a minimum requirement of IQ in the area of suicide-prevention for computer users is met).

This especially includes a XOR between normal user's execute access and normal user's write access.

Microsoft has created a whole OS release around nothing else useful than exactly this one matter.

----

There SHOULD be a possibility to circumvent this violation of personal protection act.
It would suffice to configure a special temp directory (as it is possible with the asbach-uralt Microsoft MSVC 4 IDE) for those temporary files - like it is for the output exe file of the make process.

My attempts to locate such a configuration option via google was not successful until now.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: dev-c++: circumvent execute access rights on temp dir

 
0
  #2
Dec 17th, 2007
Create a small command (or batch) file, which reads as follows
  1. @echo off
  2. set TMP=C:\temp
  3. start C:\Dev-Cpp\devcpp.exe
Change paths to suit.

Your default environment sets TMP and TEMP to point to a directory in your local settings. But you can reassign them to be whatever you want on a per process basis.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 17
Reputation: White-Gandalf is an unknown quantity at this point 
Solved Threads: 3
White-Gandalf White-Gandalf is offline Offline
Newbie Poster

Re: dev-c++: circumvent execute access rights on temp dir

 
0
  #3
Dec 17th, 2007
Originally Posted by Salem View Post
Create a small command (or batch) file, which reads as follows
  1. @echo off
  2. set TMP=C:\temp
  3. start C:\Dev-Cpp\devcpp.exe
Well, OK: The simpliest solution a fingertip away. Thanks.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC