Trust No Program
This topic is locked: you cannot edit posts or make replies.
Guest10


Joined: 27 Apr 2008
Posts: 4344
Location: Ohio, USA
Reply with quote
The instructions are listed inside the code box.
Select everything in the code box with your mouse, and then copy it to the Clipboard.
Run Notepad, and Paste the Clipboard contents into Notepad.
Save the Notepad file to the Desktop, using the name RegTest.cmd
Make sure that the file has the .cmd extension, not a .txt extension.
Double-click it to run.
After it runs, open the results in Notepad when it asks if you want to do that.
Copy the text from that Notepad document to the Clipboard.
Paste the Clipboard into a message, here.
Code:
@echo off
REM Copy everything inside of this code box, to the Clipboard.
REM Paste everything from the Clipboard into a new Notepad window.
REM Then save this program to the Desktop, as RegTest.cmd
REM (The program's file extension must be .cmd in order to run.)
REM Double-click RegEdit.cmd to run this program.

echo This program is used to read Shell Folder information from the Windows Registry.
echo The results will be saved to the hard disk in the file "C:\RegTest.txt"
echo.
echo.
If not exist C:\RegTest.txt goto continue
echo Note:
echo A file called C:\RegTest.txt already exists on the hard drive.
echo Either delete or move that file, then run this program again.
echo This program will now end.
pause
goto end

:continue
echo Working ...
set XXXXX=Software\Microsoft\Windows\CurrentVersion\Explorer

reg query "HKCU\%XXXXX%\User Shell Folders" /v "AppData" >> C:\RegTest.txt

reg query "HKCU\%XXXXX%\User Shell Folders" /v "Local AppData" >> C:\RegTest.txt

reg query "HKCU\%XXXXX%\Shell Folders" /v "AppData" >> C:\RegTest.txt

reg query "HKCU\%XXXXX%\Shell Folders" /v "Local AppData" >> C:\RegTest.txt

reg query "HKLM\%XXXXX%\User Shell Folders" /v "AppData" >> C:\RegTest.txt

reg query "HKLM\%XXXXX%\User Shell Folders" /v "Local AppData" >> C:\RegTest.txt

reg query "HKLM\%XXXXX%\Shell Folders" /v "AppData" >> C:\RegTest.txt

reg query "HKLM\%XXXXX%\Shell Folders" /v "Local AppData" >> C:\RegTest.txt

if not exist C:\RegTest.txt goto error
echo.
echo.
echo The results have been saved in the file C:\RegTest.txt
echo.
echo.
set /P answer=Do you want to open the C:\RegTest.txt file right now, using Notepad (Y/N)?
if /i "%answer%"=="y" (goto notepad) else goto end

:notepad
start notepad.exe c:\RegTest.txt

:end
exit

:error
echo File error detected.
echo The output file C:\RegTest.txt could not be found.
echo This program will now end.
pause
exit

_________________
Paul
XP Pro SP3 (Admin rights), Zone Alarm Pro Firewall, Malwarebytes Pro, Firefox 21, Thunderbird 17
View user's profileSend private message
here ya go
grsthegreat


Joined: 06 Feb 2010
Posts: 16
Location: north idaho, usa
Reply with quote
ok, if i did this correctly, here you go



C:\Documents and Settings\Greg>reg query "HKCU\%XXXXX%\User Shell Folders" /v "A
ppData"

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders
AppData REG_EXPAND_SZ %APPDATA%


C:\Documents and Settings\Greg>reg query "HKCU\%XXXXX%\User Shell Folders" /v "L
ocal AppData"

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders
Local AppData REG_EXPAND_SZ %USERPROFILE%\Local Settings\Application
Data


C:\Documents and Settings\Greg>pause
Press any key to continue . . .
View user's profileSend private message
here are the results from guest10
grsthegreat


Joined: 06 Feb 2010
Posts: 16
Location: north idaho, usa
Reply with quote
! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
AppData REG_EXPAND_SZ %APPDATA%


! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Local AppData REG_EXPAND_SZ %USERPROFILE%\Local Settings\Application Data


! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
AppData REG_SZ C:\Documents and Settings\Greg\Application Data


! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Local AppData REG_SZ C:\Documents and Settings\Greg\Local Settings\Application Data


! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders


! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders


! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders


! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
View user's profileSend private message
theu cnd.exe
grsthegreat


Joined: 06 Feb 2010
Posts: 16
Location: north idaho, usa
Reply with quote
this is rerunning it in cmd.exe file the way you wanted me to do before, i guess?


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Greg>set XXXXX=Software\Microsoft\Windows\CurrentVersi
on\Explorer

C:\Documents and Settings\Greg>
C:\Documents and Settings\Greg>reg query "HKCU\%XXXXX%\User Shell Folders" /v "A
ppData"

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders
AppData REG_EXPAND_SZ %APPDATA%


C:\Documents and Settings\Greg>reg query "HKCU\%XXXXX%\User Shell Folders" /v "L
ocal AppData"

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders
Local AppData REG_EXPAND_SZ %USERPROFILE%\Local Settings\Application
Data


C:\Documents and Settings\Greg>
C:\Documents and Settings\Greg>reg query "HKCU\%XXXXX%\Shell Folders" /v "AppDat
a"

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folde
rs
AppData REG_SZ C:\Documents and Settings\Greg\Application Data


C:\Documents and Settings\Greg>reg query "HKCU\%XXXXX%\Shell Folders" /v "Local
AppData"

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folde
rs
Local AppData REG_SZ C:\Documents and Settings\Greg\Local Settings\Ap
plication Data


C:\Documents and Settings\Greg>
C:\Documents and Settings\Greg>reg query "HKLM\%XXXXX%\User Shell Folders" /v "A
ppData"

! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders


Error: The system was unable to find the specified registry key or value

C:\Documents and Settings\Greg>reg query "HKLM\%XXXXX%\User Shell Folders" /v "L
ocal AppData"

! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders


Error: The system was unable to find the specified registry key or value

C:\Documents and Settings\Greg>
C:\Documents and Settings\Greg>reg query "HKLM\%XXXXX%\Shell Folders" /v "AppDat
a"

! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Fold
ers


Error: The system was unable to find the specified registry key or value

C:\Documents and Settings\Greg>reg query "HKLM\%XXXXX%\Shell Folders" /v "Local
AppData"
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4344
Location: Ohio, USA
Reply with quote
Using the results shown in the message (2 posts above) titled
"here are the results from guest10":

The first line in grsthegreat's output shows as:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
AppData REG_EXPAND_SZ %APPDATA%

My own results:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
AppData REG_EXPAND_SZ %USERPROFILE%\Application Data

The rest of grsthegreat's output matches my own results.
So it appears that grsthegreat's HKCU\..\User Shell Folder value for AppData is
%APPDATA%
instead of
%USERPROFILE%\Application Data

On the other hand, the value for AppData in the "Shell Folders" key (as opposed to the "User Shell Folders" key) is correct.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
AppData REG_SZ C:\Documents and Settings\Greg\Application Data


tzuk, is that how you read it?
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
Guest10 wrote:
tzuk, is that how you read it?


Yes. Sandboxie looks to expand %something% first using HKCU\...\User Shell Folders,
and if can't find it there, then HKCU\...\Shell Folders,
and likewise HKLM\...\User Shell Folders,
and finally HKLM\...\Shell Folders.

I will have to revise Sandboxie so if it sees an expansion of %something% into that same %something%, it will be considered as if %something% was not found at all, so it can keep looking in the registry. This should fix this particular problem.

grsthegreat thanks for producing these results. To fix your problem, you will have to fix your registry. Are you comfortable using the regedit tool?

_________________
tzuk
View user's profileSend private message
sure
grsthegreat


Joined: 06 Feb 2010
Posts: 16
Location: north idaho, usa
Reply with quote
so so.. i have done so in the past.
if i do this, will it affect anything else in the computer? right now everything is working great...hate to change it


but im game to give it a try

oh...least i forget. i do so want to thank both of you for your help. i love this site and the program
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4344
Location: Ohio, USA
Reply with quote
I have prepared the following instruction list, in case grsthegreat wants to use it.
The first part simply describes how to use the Registry Editor program to view the current value for Appdata.
Optionally, there are 2 methods listed for correcting a bad data value for AppData.
-------------------------------------------------------------------
NOTE to anyone who finds this write-up.
This applies ONLY to Windows XP.
DO NOT USE the Value Data shown below for Win 2000, VISTA or WIN 7.
-------------------------------------------------------------------
If you want to verify (and possibly change) the current value that is assigned to AppData in the User Shell Folders key:
Use the Registry Editor program to view the Registry.
It works a lot like Windows Explorer: you open keys in the left panel by clicking on the [+] sign to the left of each key.

Start > Run...
Put in the "Open" box:
regedit
Click OK.

In the left panel, click on the [+] sign to the left of
[+] HKEY_CURRENT_USER
then in turn, scroll down and click the [+] sign next to:
[+] Software
[+] Microsoft
[+] Windows
[+] CurrentVersion
[+] Explorer

then click on the yellow folder called:
User Shell Folders

On the right side of the window, the value shown for AppData should be:
Name: AppData
Type: REG_EXPAND_SZ
Data: %USERPROFILE%\Application Data

In fact, all of the "Data" values on the right side of the screen should start with:
%USERPROFILE%
If they do not, then don't make any changes.
------------------------------------------
Assuming that the AppData value is not correct:
(2) possible ways to get the correct data into AppData (read both of the following methods):

Method #1):
It's possible to change the existing value while you're looking at the above Registry Editor window.
If you want to try it this way:
Double-click on the word AppData, on the right side of the screen.
The current value for AppData will show in a small window that opens.
The current value will be highlighted, so anything that you type will replace the value that's shown there.
Either carefully type in, or copy/paste the following (one) line, into the Value Data box:

%USERPROFILE%\Application Data

(If you copy the above line to the Clipboard, so you can paste it into the box, don't include the blank line above or below the actual line of text)
Then click on OK after entering the new value, and see the new value for AppData on the right side of the window.
It should match the above line.
If you happen to type it wrong, just double-click again on AppData, and enter the line above.
When you're sure that it's correct, just exit the Registry Editor program.
Done.

or
Method #2):
Copy the text inside of the following code box, and paste it into a new Notepad window.
Save the Notepad document to your Desktop, with the name:
RegEdit.reg
(It can have any filename, but it must have the .reg extension in order to work)
Then just double-click on the RegEdit.reg icon on the Desktop, and click on YES, when it asks if you want to add the information to your Registry.
After clicking Yes, in less than a second you are done.
XP ONLY:
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]

"AppData"=-
"AppData"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,6c,00,69,00,63,00,61,00,74,00,69,00,\
  6f,00,6e,00,20,00,44,00,61,00,74,00,61,00,00,00

The line
"AppData"=-
deletes the current value of AppData.
The next line adds the correct value of AppData to the Registry.
The value shown above, for AppData, is in a special form that Windows calls "Expandable String Value".
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4344
Location: Ohio, USA
Reply with quote
I think I have beat tzuk, this time. Laughing
View user's profileSend private message
IT WORKS YAAAAA
grsthegreat


Joined: 06 Feb 2010
Posts: 16
Location: north idaho, usa
Reply with quote
man...i dont know what to say...but thank you

it all works now.

thanks for both of you for your help.......

greg
View user's profileSend private message
new problem
grsthegreat


Joined: 06 Feb 2010
Posts: 16
Location: north idaho, usa
Reply with quote
ok...new update about this problem.

I had to go and change the registry back to the original setting, because with the new settings, JAVA would not work. I tried with Java support to fix this, and he told me i had to set the %appdata% back. as soon as i did, java started working again.

So i guess i just wont be able to open email with sandboxie...
oh well, i tried.
thanks for all your heal anyways
View user's profileSend private message
Re: new problem
Guest10


Joined: 27 Apr 2008
Posts: 4344
Location: Ohio, USA
Reply with quote
grsthegreat wrote:
I had to go and change the registry back to the original setting, because with the new settings, JAVA would not work.
Strange how Java works for everyone else including me, with the default Windows value for AppData.
Java would have no business changing that value, so I think you were given a snow job by their tech support.
Maybe you just needed to reinstall java when your Registry had the correct value?
I would try a different tech. I don't think that one knows what he's talking about.
----
I can't say that I've ever used the following, but if you want to see if it will work for you:
put the line that's shown in bold, in your Sandboxie configuration file.

Use Configure > Edit Configuration
and put the line under the [GlobalSettings] section, in addition to any lines that are already there:

[GlobalSettings]

...
Reg.AppData=C:\Documents and Settings\Greg\Application Data

If I got that line correct, it might override the setting for AppData in your Registry.
View user's profileSend private message
tried that
grsthegreat


Joined: 06 Feb 2010
Posts: 16
Location: north idaho, usa
Reply with quote
well, i tried the reg change...still not working.

when i typed the java error code in the browser, i get several messages referring to %appdata% file changes. and like i said when i changed it back, java wirked fine. also, after i changed the name to allow for email, i could no longer update java files. all i got were decompression errors.

dont ask me, like i say my other computer works great as the program was downloaded. theres just something fishy with this computer
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
grsthegreat wrote:
So i guess i just wont be able to open email with sandboxie...


I should be able to fix this in the next version of Sandboxie, but until then, it seems you are right that you won't be able to use Sandboxie with your email program.

Guest10 wrote:
If I got that line correct, it might override the setting for AppData in your Registry.


Unfortunately ... this "override" only works if the value is not found in the registry. It appears now that it was a silly decision to do it this way... I will also address this in the next version.
View user's profileSend private message
thanks
grsthegreat


Joined: 06 Feb 2010
Posts: 16
Location: north idaho, usa
Reply with quote
thank you both for your help.

greg
View user's profileSend private message
[FIXED 3.45.08] cant get outlook express to worki
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 2 of 3  

Use the RSS feed to watch this topic for replies
  
  
 This topic is locked: you cannot edit posts or make replies.  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,161,623 times since June 2004