Autorefresh with RUNAS

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Mike Elkins
Member
Member
Posts: 10
Joined: 2004 Aug 27, 19:57

Autorefresh with RUNAS

Post by Mike Elkins »

I have xplorer2 installed on a Dell GX280 PC running Windows XP SP1 computer. I'm logged into the network with my non-administrator account and use xplorer2 for file and directory functions with my administrator account. If I'm logged in as administrator or my non-administrator account I have no problem with the AutoRefresh. If I'm logged in with my non-administrator account and use the RUNAS command to run xplorer with my administrator account I can't get AutoRefresh to work. I have to use Ctrl-R to refresh the screen when I delete files, etc.

I use the following command to start xplorer.

C:\WINDOWS\SYSTEM32\RUNAS.EXE /user:mydomain\myuserid "C:\program files\zabkat\xplorer2\xplorer2_uc.exe"

I've also tried the /profile option.

Does anyone have any idea what might be causing the problem??

thanks in advance!!

:D :D :D
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

the shell autorefresh system gets totally foobar'd with runas
the workaround is to enable GIOPT_ALTAREFRESH (see registry.txt)

i'd recommend using a fresh registry key (/S: command line option) since you don't want to use this mode of autorefresh for everyday. Probably it won't work for network changes too (same limitation as 2xExplorer)
Mike Elkins
Member
Member
Posts: 10
Joined: 2004 Aug 27, 19:57

Post by Mike Elkins »

I changed the binMiscOptions to 4 and I also tried 4100. Neither worked. The initial value was 224 which didn't seem to add up to any of the options.

binMiscOptions -> miscellaneous options [default = 0]
GIOPT_ALTAREFRESH 4 /* backup autorefresh mechanizm */
GIOPT_NOPOSHREFRESH 4096 /* turn off the "modern" refresh
system; should be used with GIOPT_ALTAREFRESH */

I haven't tried the /S: command line option
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

which binmiscoptions though?
you need the one straight under the xplorer2 key, not one for frames or views
Mike Elkins
Member
Member
Posts: 10
Joined: 2004 Aug 27, 19:57

Post by Mike Elkins »

I put it in the one under

HKCU/Zabarakaranemia Pic/xplorer2_Uc.

I logged out of my non-administrator account, logged back in with my administrator account, edited the registry keys, logged out of my administrator account and then logged back in with my non-administrator account and ran xplorer with the RUNAS command and it is working now.

thanks!
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

ok you've got the right key
it is registry.txt that wrongly describes this default value to 0, it is 224 as you've discovered

to enable GIOPT_ALTAREFRESH whose numerical equivalent is 4, just add it on top, taking the total to 228 (make sure regedit is in decimal data insertion mode)

and you must quit x2 before making the change
it should autorefresh ok for local drives at least

you must also take care to run regedit as the same user you are impersonating with runas!
Mike Elkins
Member
Member
Posts: 10
Joined: 2004 Aug 27, 19:57

Post by Mike Elkins »

Nikos,

See my last post again..you probably read it before I edited it and made some last minute changes.

I got it working using a value of 4.

I will go back and change it to 228.

thanks!

Mike