Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > "Program files" role set to wrong folder

Reply
Thread Tools Display Modes

"Program files" role set to wrong folder

 
 
kantastisk
Guest
Posts: n/a

 
      09-24-2008

I'm new here so hello :

I've found out that my program files folder is currently set t
G:\Programmer (eng - program files) when obviously it should b
C:\program files. This has many implications since many default Window
paths are broken

I don't know how it happened and I didn't notice until I lost the us
of Picture Viewer (Vista looks for the pictureviewer.dll in the wron
folder)

I've tried googling for this a lot, but no answers - in fact I can'
even find anyone else with my problem..

--
kantastisk
 
Reply With Quote
 
 
 
 
Synapse Syndrome
Guest
Posts: n/a

 
      09-24-2008
"kantastisk" <> wrote in message
news:...
>
> I'm new here so hello
>
> I've found out that my program files folder is currently set to
> G:\Programmer (eng - program files) when obviously it should be
> C:\program files. This has many implications since many default Windows
> paths are broken.
>
> I don't know how it happened and I didn't notice until I lost the use
> of Picture Viewer (Vista looks for the pictureviewer.dll in the wrong
> folder).
>
> I've tried googling for this a lot, but no answers - in fact I can't
> even find anyone else with my problem..?



If you type this in a command prompt, what does it say?

set programfiles

If it says something other than ProgramFiles=C:\Program Files, type

set

and paste the complete reply here.

ss.


 
Reply With Quote
 
kantastisk
Guest
Posts: n/a

 
      09-24-2008

thank you for taking the tim

this output contains information I consider private, so I hope yo
don't mind I've replaced some bits with an x. they should not be crucia
either

output of set programfiles

Code
-------------------

ProgramFiles=G:\Programme
ProgramFiles=(x86)=G:\Programme
-------------------
output of set

Code
-------------------

ALLUSERSPROFILE=C:\ProgramDat
APPDATA=C:\Users\x\AppData\Roamin
CLASSPATH=.;C:\Program Files (x86)\Java\jre1.6.0_05\lib\ext\QTJava.zi
CommonProgramFiles=C:\Program Files (x86)\Common File
CommonProgramFiles(x86)=C:\Program Files (x86)\Common File
CommonProgramW6432=C:\Program Files\Common File
COMPUTERNAME=
ComSpec=C:\Windows\system32\cmd.ex
DFSTRACINGON=FALS
FP_NO_HOST_CHECK=N
HOMEDRIVE=C
HOMEPATH=\Users\
LOCALAPPDATA=C:\Users\x\AppData\Loca
LOGONSERVER=\\
NUMBER_OF_PROCESSORS=
OS=Windows_N
Path=C:\Windows\system32;C:\Windows;C:\Windows\Sys tem32\Wbem;C:\Program Files (
86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\QuickTime\QTSys
em
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WS F;.WSH;.MS
PROCESSOR_ARCHITECTURE=x8
PROCESSOR_ARCHITEW6432=AMD6
PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 2 Stepping 3, AuthenticAM
PROCESSOR_LEVEL=1
PROCESSOR_REVISION=020
ProgramData=C:\ProgramDat
ProgramFiles=G:\Programme
ProgramFiles(x86)=G:\Programme
ProgramW6432=G:\Programme
PROMPT=$P$
PUBLIC=C:\Users\Publi
QTJAVA=C:\Program Files (x86)\Java\jre1.6.0_05\lib\ext\QTJava.zi
SESSIONNAME=Consol
SystemDrive=C
SystemRoot=C:\Window
TEMP=C:\Users\x\AppData\Local\Tem
TMP=C:\Users\x\AppData\Local\Tem
TRACE_FORMAT_SEARCH_PATH=\\NTREL202.ntdev.corp.mic rosoft.com\34FB5F65-FFEB-4B61
BF0E-A6A76C450FAA\TraceForma
USERDOMAIN=
USERNAME=
USERPROFILE=C:\Users\
windir=C:\Window
-------------------
I notice tha

ProgramFiles=G:\Programme
ProgramFiles(x86)=G:\Programme
ProgramW6432=G:\Programme

are set to G:\Programmer. I tried then to just d

Code
-------------------
set programfiles=C:\Program File
-------------------
and so on, but this is reverted as soon as I close the command prompt

--
kantastisk
 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      09-24-2008
"kantastisk" <> wrote in message
news:...
>
> I notice that
>
> ProgramFiles=G:\Programmer
> ProgramFiles(x86)=G:\Programmer
> ProgramW6432=G:\Programmer
>
> are set to G:\Programmer. I tried then to just do
>
> Code:
> --------------------
> set programfiles=C:\Program Files
> --------------------
> and so on, but this is reverted as soon as I close the command prompt.



Yes, everything looks normal, apart from those three variables not pointing
to where you want them to. It's a mystery how that happened without you
doing it yourself.

Have you tried doing the same thing from an elevated command prompt (right
click runas admin)?

After changing the variables to how you want them, you could move the
programs on G: to C:, but you will most probably have to do a Find & Replace
sweep on the registry, to change to the rectified locations.

ss.


 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      09-24-2008
"kantastisk" <> wrote in message
news:...
> I tried then to just do
>
> Code:
> --------------------
> set programfiles=C:\Program Files
> --------------------
> and so on, but this is reverted as soon as I close the command prompt.



Oh, surely you should be typing:

--------------------
> set programfiles=C:\Programmer

--------------------

...instead?

ss.


 
Reply With Quote
 
kantastisk
Guest
Posts: n/a

 
      09-25-2008

> It's a mystery how that happened without you
> doing it yourself.he, well, I'm sure it's my fault somehow, I just can't figure out how it

happened either. I've relocated my downloads, music, pictures and videos
folder to G:, could this have an effect, maybe?

> Have you tried doing the same thing from an elevated command prompt
> (right
> click runas admin)?yup, no change


> Oh, surely you should be typing:
>
> --------------------
> Quote:
> [image:
> http://www.vistax64.com/images/bbcod...s/12n3_01.png]
>
>
> > set programfiles=C:\Programmer

>
>
>
>
>
> --------------------
>
> ...instead?
>
> ss.you're probably right, but I get the same result: Changes are reverted

as soon as I close the prompt.


--
kantastisk
 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      09-25-2008
kantastisk <> wrote:
>
> > It's a mystery how that happened without you
> > doing it yourself.he, well, I'm sure it's my fault somehow, I just
> > can't figure out how it

> happened either. I've relocated my downloads, music, pictures and videos
> folder to G:, could this have an effect, maybe?
>
> > Have you tried doing the same thing from an elevated command prompt
> > (right
> > click runas admin)?yup, no change

>
> > Oh, surely you should be typing:
> >
> > --------------------
> > Quote:
> > [image:
> > http://www.vistax64.com/images/bbcod...s/12n3_01.png]
> >
> >
> > > set programfiles=C:\Programmer

> >
> > --------------------
> >
> > ...instead?
> >
> > ss.you're probably right, but I get the same result: Changes are
> > reverted

> as soon as I close the prompt.
>




It's a horrible kludge, but if all else fails, until you have time to make a
fresh OS installation, after moving the program folders on G: to C:, you
could replace the folder with a junction point, pointing to the correct
location, using the MKLINK command. This way, you can still use both
locations, but they actual data will always be on C:, and you do not have to
make sure that all references to program file locations in the registry
corrected.

ss.

ss.


 
Reply With Quote
 
+Bob+
Guest
Posts: n/a

 
      09-26-2008
On Wed, 24 Sep 2008 23:14:31 -0500, kantastisk
<> wrote:

>
>> It's a mystery how that happened without you
>> doing it yourself.he, well, I'm sure it's my fault somehow, I just can't figure out how it

>happened either. I've relocated my downloads, music, pictures and videos
>folder to G:, could this have an effect, maybe?


Vista does some funky things with the "special" directories. With XP,
I had previously hacked the registry to have my favorites on a shared
drive. When I hooked up my Vista machine to the shared drive, it
immediately assumed I wanted that to be my favorites folder (without
me asking for it).

LIkewise it did the same with my "My Documents" folder. I had set up
one on another shared drive in XP. It picked that up and set it as my
default even though I didn't ask it to do that - and in fact didn't
want it to.

I think the posted solution of a registry hack to return it is the
only choice - but Vista might decide again that you need it changed
without asking.

Vista (minimal improvements, maximum annoyances).
 
Reply With Quote
 
B. D. Reagan
Guest
Posts: n/a

 
      10-12-2008

"kantastisk" <> wrote in message news:...
>
> thank you for taking the time
>
> this output contains information I consider private, so I hope you
> don't mind I've replaced some bits with an x. they should not be crucial
> either.
>
> output of set programfiles:
>
> Code:
> --------------------
>
> ProgramFiles=G:\Programmer
> ProgramFiles=(x86)=G:\Programmer
> --------------------
> output of set:
>
> Code:
> --------------------
>
> ALLUSERSPROFILE=C:\ProgramData
> APPDATA=C:\Users\x\AppData\Roaming
> CLASSPATH=.;C:\Program Files (x86)\Java\jre1.6.0_05\lib\ext\QTJava.zip
> CommonProgramFiles=C:\Program Files (x86)\Common Files
> CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
> CommonProgramW6432=C:\Program Files\Common Files
> COMPUTERNAME=x
> ComSpec=C:\Windows\system32\cmd.exe
> DFSTRACINGON=FALSE
> FP_NO_HOST_CHECK=NO
> HOMEDRIVE=C:
> HOMEPATH=\Users\x
> LOCALAPPDATA=C:\Users\x\AppData\Local
> LOGONSERVER=\\x
> NUMBER_OF_PROCESSORS=4
> OS=Windows_NT
> Path=C:\Windows\system32;C:\Windows;C:\Windows\Sys tem32\Wbem;C:\Program Files (x
> 86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\QuickTime\QTSyst
> em\
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WS F;.WSH;.MSC
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_ARCHITEW6432=AMD64
> PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 2 Stepping 3, AuthenticAMD
> PROCESSOR_LEVEL=16
> PROCESSOR_REVISION=0203
> ProgramData=C:\ProgramData
> ProgramFiles=G:\Programmer
> ProgramFiles(x86)=G:\Programmer
> ProgramW6432=G:\Programmer
> PROMPT=$P$G
> PUBLIC=C:\Users\Public
> QTJAVA=C:\Program Files (x86)\Java\jre1.6.0_05\lib\ext\QTJava.zip
> SESSIONNAME=Console
> SystemDrive=C:
> SystemRoot=C:\Windows
> TEMP=C:\Users\x\AppData\Local\Temp
> TMP=C:\Users\x\AppData\Local\Temp
> TRACE_FORMAT_SEARCH_PATH=\\NTREL202.ntdev.corp.mic rosoft.com\34FB5F65-FFEB-4B61-
> BF0E-A6A76C450FAA\TraceFormat
> USERDOMAIN=x
> USERNAME=x
> USERPROFILE=C:\Users\x
> windir=C:\Windows
> --------------------
> I notice that
>
> ProgramFiles=G:\Programmer
> ProgramFiles(x86)=G:\Programmer
> ProgramW6432=G:\Programmer
>
> are set to G:\Programmer. I tried then to just do
>
> Code:
> --------------------
> set programfiles=C:\Program Files
> --------------------
> and so on, but this is reverted as soon as I close the command prompt.
>
>
> --
> kantastisk




That is interesting.

Maybe you could try something like:

mkdir chosenroot\whatever
subst G: chosenroot\whatever
G:
mklink /J Programmer "C:\Program Files"

?

Now the problem is removing it ... (:


 
Reply With Quote
 
kantastisk
Guest
Posts: n/a

 
      10-17-2008

Sorry for not getting back.

Could you dumb it down a little for me?

What would I be doing here, and how would the commands look more
specifically?


--
kantastisk
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot customize "Program files" folder Wade Windows Vista General Discussion 14 03-30-2008 04:02 AM
Need to access "Program Files" folder! MrBill Windows Vista General Discussion 10 06-30-2007 09:02 AM
Slow ".exe" calling from a shared program folder in a non-Vista machine fpsoft Windows Vista Networking 1 04-10-2007 02:21 PM
"Program Files" directory problem - probably virtualisation issue cheater_ Windows Vista General Discussion 0 03-02-2007 12:46 PM
Longhorn Beta2: Error on adding Role "Windows Sharepoint Services" André M. Bautz Windows Vista Installation 2 06-02-2006 01:34 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59