Re: Is there a VFP command without using RUN ?




"WP" <wp_nospam@xxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:%23ejp76UsIHA.3616@xxxxxxxxxxxxxxxxxxxxxxx
In my VFP9 application I use yy='explorer /e,/select, '+x2 where x2 is a variable
folder. Then I issue RUN /N &yy. I would like to know if there is another way of
invoking the explorer and have it open a given folder. I ask because my whole
application runs with impersonation, that means that the user behind running the
application is not the same as the Windows user. With that impersonation my command
described above does not do anything. It doesn't give an error, but it does not open any
explorer, nothing.

In addition to Bruce's comment - you can use ShellExecute()
instead of !|RUN.

Your case is a special one though, since explorer.exe refuses
to "run as..." in a secondary instance with elevated privileges.
On WinXP with Internet Explorer 6, you can start iexplore.exe
instead.
With IE7, that does not work either but you can use the /separate
switch, e.g.:
%windir%\system32\runas.exe /user:admin "explorer /separate,c:\"



hth
-Stefan




--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------


.



Relevant Pages

  • Re: How reduce number items listed start menu
    ... is Explorer the only way, ... If you create a folder in the All Users\Start Menu with the same name as one ... Create and Configure User Accounts in Windows XP ... application, Disk copier, etc.) You'll be glad to know that if you have ...
    (microsoft.public.windowsxp.basics)
  • RE: IE Explorer error when viewing jpg
    ... "nass" wrote: ... Explorer begins to open the folder then shuts down with the message explorer ... Possible Virus Infection (I'm running McAfee and a scan of the drive did not ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: normal.dot
    ... The only difference between Start | Search and searching from Windows ... "Stella" wrote in message ... > Windows Explorer to get to the search function I started ... >>> -Open My Documents Folder ...
    (microsoft.public.word.newusers)
  • Re: Cant delete folder!!! (Xere Inc)
    ... Explorer is configured to show hidden and system folders/files for the ... Free tools from SysInternals such as Process Explorer Autoruns and can help ... You also should scan for spyware and malware in Safe Mode being sure ... "Cannot rename New Folder: A file with the name you specified already ...
    (microsoft.public.windowsxp.security_admin)
  • Re: printer context menu error in printer folder
    ... The .htt is sort of a web page, except that it runs in Explorer, not IE ... Actually, .HTT stands for HyperText ... You can customize your own folder by doing a custom .htt and linking it to ... area on a folder and customize view, Windows generates a .htt for you. ...
    (microsoft.public.win2000.file_system)