Forum Topic - Change /tmp to what my windows have in %TEMP%:
   
Change /tmp to what my windows have in %TEMP%  
Hi!

I don't want a lot of files i C:\ so I want to change the temp folder created by Applicationbuilder when it starts.
How do I change that folder?
Found something in the ph-file but what do I change and to what?


/Henke
RE: Change /tmp to what my windows have in %TEMP%  
Hi Henrik. The location of the /tmp folder is determined by the cygwin
"/" mount point. By default Cygwin puts this at the root of the C drive.
You can change this location by using "regedit" and editing the
following Windows registry key:

1) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 
2) Add a new key under this one called "/" (without the quotes of
course)
3) Add a new DWORD value named "flags" under the new key, and give it a
value of A (which is 10 in decimal)
4) Add a new string value named "native" under the new key, and give it
a value of the directory where you want /tmp to be created, for example
the contents of your %TEMP%.

Good luck, and as recommended by Microsoft please back up your registry
before editing it in case something goes wrong.

Max

P.S. You can see a sample screenshot of regedit showing correct values
here: http://max.dnsalias.com:22280/screenshot.jpg

-----Original Message-----
From: Henrik Holmberg [mailto:community-noreply@qnx.com] 
Sent: Saturday, January 31, 2009 12:27 PM
To: general-community
Subject: Change /tmp to what my windows have in %TEMP%

Hi!

I don't want a lot of files i C:\ so I want to change the temp folder
created by Applicationbuilder when it starts.
How do I change that folder?
Found something in the ph-file but what do I change and to what?


/Henke

_______________________________________________
General
http://community.qnx.com/sf/go/post21192
Sv: RE: Change /tmp to what my windows have in %TEMP%  
Hi!



The problem is that I don't have that Cygnus part in my register.

I'm running Vista Ultimate x64 BTW





/Henrik 

 

-------Originalmeddelande-------

 

Från: Max Feil

Datum: 2009-02-02 21:01:01

Till: general-community

Ämne: RE: Change /tmp to what my windows have in %TEMP%

 

Hi Henrik. The location of the /tmp folder is determined by the cygwin

"/" mount point. By default Cygwin puts this at the root of the C drive.

You can change this location by using "regedit" and editing the

following Windows registry key:

 

1) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2

2) Add a new key under this one called "/" (without the quotes of

course)

3) Add a new DWORD value named "flags" under the new key, and give it a

value of A (which is 10 in decimal)

4) Add a new string value named "native" under the new key, and give it

a value of the directory where you want /tmp to be created, for example

the contents of your %TEMP%.

 

Good luck, and as recommended by Microsoft please back up your registry

before editing it in case something goes wrong.

 

Max

 

P.S. You can see a sample screenshot of regedit showing correct values

here: http://max.dnsalias.com:22280/screenshot.jpg

 

-----Original Message-----

From: Henrik Holmberg [mailto:community-noreply@qnx.com]

Sent: Saturday, January 31, 2009 12:27 PM

To: general-community

Subject: Change /tmp to what my windows have in %TEMP%

 

Hi!

 

I don't want a lot of files i C:\ so I want to change the temp folder

created by Applicationbuilder when it starts.

How do I change that folder?

Found something in the ph-file but what do I change and to what?

 

 

/Henke

 

_______________________________________________

General

http://community.qnx.com/sf/go/post21192

 

 

_______________________________________________

General

http://community.qnx.com/sf/go/post21246

 
Attachment: Image faint_grain.jpg 1.42 KB
RE: RE: Change /tmp to what my windows have in %TEMP%  
It's in HKEY_CURRENT_USER

> -----Original Message-----
> From: Henrik Holmberg [mailto:community-noreply@qnx.com]
> Sent: February-02-09 4:39 PM
> To: general-community
> Subject: Sv: RE: Change /tmp to what my windows have in %TEMP%
> 
> Hi!
> 
> 
> 
> The problem is that I don't have that Cygnus part in my register.
> 
> I'm running Vista Ultimate x64 BTW
> 
> 
> 
> 
> 
> /Henrik
> 
> 
> 
> -------Originalmeddelande-------
> 
> 
> 
> Från: Max Feil
> 
> Datum: 2009-02-02 21:01:01
> 
> Till: general-community
> 
> Ämne: RE: Change /tmp to what my windows have in %TEMP%
> 
> 
> 
> Hi Henrik. The location of the /tmp folder is determined by the cygwin
> 
> "/" mount point. By default Cygwin puts this at the root of the C
> drive.
> 
> You can change this location by using "regedit" and editing the
> 
> following Windows registry key:
> 
> 
> 
> 1) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
> 
> 2) Add a new key under this one called "/" (without the quotes of
> 
> course)
> 
> 3) Add a new DWORD value named "flags" under the new key, and give it a
> 
> value of A (which is 10 in decimal)
> 
> 4) Add a new string value named "native" under the new key, and give it
> 
> a value of the directory where you want /tmp to be created, for example
> 
> the contents of your %TEMP%.
> 
> 
> 
> Good luck, and as recommended by Microsoft please back up your registry
> 
> before editing it in case something goes wrong.
> 
> 
> 
> Max
> 
> 
> 
> P.S. You can see a sample screenshot of regedit showing correct values
> 
> here: http://max.dnsalias.com:22280/screenshot.jpg
> 
> 
> 
> -----Original Message-----
> 
> From: Henrik Holmberg [mailto:community-noreply@qnx.com]
> 
> Sent: Saturday, January 31, 2009 12:27 PM
> 
> To: general-community
> 
> Subject: Change /tmp to what my windows have in %TEMP%
> 
> 
> 
> Hi!
> 
> 
> 
> I don't want a lot of files i C:\ so I want to change the temp folder
> 
> created by Applicationbuilder when it starts.
> 
> How do I change that folder?
> 
> Found something in the ph-file but what do I change and to what?
> 
> 
> 
> 
> 
> /Henke
> 
> 
> 
> _______________________________________________
> 
> General
> 
> http://community.qnx.com/sf/go/post21192
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> 
> http://community.qnx.com/sf/go/post21246
> 
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post21254
RE: RE: Change /tmp to what my windows have in %TEMP%  
Please double check. Any Cygwin application will always add the "HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\
mounts v2" key to the registry. It has to be there if appbuilder was ever run before.

And as per Mario's note, there is a duplicate of this key under HKEY_CURRENT_USER but in my tests this one was not used.
 You need the one under HKEY_LOCAL_MACHINE.

Max

-----Original Message-----
From: Henrik Holmberg [mailto:community-noreply@qnx.com] 
Sent: Monday, February 02, 2009 4:39 PM
To: general-community
Subject: Sv: RE: Change /tmp to what my windows have in %TEMP%

Hi!



The problem is that I don't have that Cygnus part in my register.

I'm running Vista Ultimate x64 BTW





/Henrik 

 

-------Originalmeddelande-------

 

Från: Max Feil

Datum: 2009-02-02 21:01:01

Till: general-community

Ämne: RE: Change /tmp to what my windows have in %TEMP%

 

Hi Henrik. The location of the /tmp folder is determined by the cygwin

"/" mount point. By default Cygwin puts this at the root of the C drive.

You can change this location by using "regedit" and editing the

following Windows registry key:

 

1) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2

2) Add a new key under this one called "/" (without the quotes of

course)

3) Add a new DWORD value named "flags" under the new key, and give it a

value of A (which is 10 in decimal)

4) Add a new string value named "native" under the new key, and give it

a value of the directory where you want /tmp to be created, for example

the contents of your %TEMP%.

 

Good luck, and as recommended by Microsoft please back up your registry

before editing it in case something goes wrong.

 

Max

 

P.S. You can see a sample screenshot of regedit showing correct values

here: http://max.dnsalias.com:22280/screenshot.jpg

 

-----Original Message-----

From: Henrik Holmberg [mailto:community-noreply@qnx.com]

Sent: Saturday, January 31, 2009 12:27 PM

To: general-community

Subject: Change /tmp to what my windows have in %TEMP%

 

Hi!

 

I don't want a lot of files i C:\ so I want to change the temp folder

created by Applicationbuilder when it starts.

How do I change that folder?

Found something in the ph-file but what do I change and to what?

 

 

/Henke

 

_______________________________________________

General

http://community.qnx.com/sf/go/post21192

 

 

_______________________________________________

General

http://community.qnx.com/sf/go/post21246

 

_______________________________________________
General
http://community.qnx.com/sf/go/post21254
RE: RE: Change /tmp to what my windows have in %TEMP%  
Max,

 I can confirm that there is nothing under HKEY_LOCAL_MACHINE, i'm also using Vista64.  I did a search of the string 
Cygnus in all of the registry and that is all I could find.

> -----Original Message-----
> From: Max Feil [mailto:community-noreply@qnx.com]
> Sent: February-02-09 4:45 PM
> To: general-community
> Subject: RE: RE: Change /tmp to what my windows have in %TEMP%
> 
> Please double check. Any Cygwin application will always add the
> "HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2" key to
> the registry. It has to be there if appbuilder was ever run before.
> 
> And as per Mario's note, there is a duplicate of this key under
> HKEY_CURRENT_USER but in my tests this one was not used. You need the
> one under HKEY_LOCAL_MACHINE.
> 
> Max
> 
> -----Original Message-----
> From: Henrik Holmberg [mailto:community-noreply@qnx.com]
> Sent: Monday, February 02, 2009 4:39 PM
> To: general-community
> Subject: Sv: RE: Change /tmp to what my windows have in %TEMP%
> 
> Hi!
> 
> 
> 
> The problem is that I don't have that Cygnus part in my register.
> 
> I'm running Vista Ultimate x64 BTW
> 
> 
> 
> 
> 
> /Henrik
> 
> 
> 
> -------Originalmeddelande-------
> 
> 
> 
> Från: Max Feil
> 
> Datum: 2009-02-02 21:01:01
> 
> Till: general-community
> 
> Ämne: RE: Change /tmp to what my windows have in %TEMP%
> 
> 
> 
> Hi Henrik. The location of the /tmp folder is determined by the cygwin
> 
> "/" mount point. By default Cygwin puts this at the root of the C
> drive.
> 
> You can change this location by using "regedit" and editing the
> 
> following Windows registry key:
> 
> 
> 
> 1) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
> 
> 2) Add a new key under this one called "/" (without the quotes of
> 
> course)
> 
> 3) Add a new DWORD value named "flags" under the new key, and give it a
> 
> value of A (which is 10 in decimal)
> 
> 4) Add a new string value named "native" under the new key, and give it
> 
> a value of the directory where you want /tmp to be created, for example
> 
> the contents of your %TEMP%.
> 
> 
> 
> Good luck, and as recommended by Microsoft please back up your registry
> 
> before editing it in case something goes wrong.
> 
> 
> 
> Max
> 
> 
> 
> P.S. You can see a sample screenshot of regedit showing correct values
> 
> here: http://max.dnsalias.com:22280/screenshot.jpg
> 
> 
> 
> -----Original Message-----
> 
> From: Henrik Holmberg [mailto:community-noreply@qnx.com]
> 
> Sent: Saturday, January 31, 2009 12:27 PM
> 
> To: general-community
> 
> Subject: Change /tmp to what my windows have in %TEMP%
> 
> 
> 
> Hi!
> 
> 
> 
> I don't want a lot of files i C:\ so I want to change the temp folder
> 
> created by Applicationbuilder when it starts.
> 
> How do I change that folder?
> 
> Found something in the ph-file but what do I change and to what?
> 
> 
> 
> 
> 
> /Henke
> 
> 
> 
> _______________________________________________
> 
> General
> 
> http://community.qnx.com/sf/go/post21192
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> 
> http://community.qnx.com/sf/go/post21246
> 
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post21254
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post21256