Drag and Drop Problems (UAC related)

G

Guest

I can't seem to drag and drop a file from Windows Explorer with elevated
privileges to Notepad (or any other editor) with elevated privileges. Why
not? Both have elevated privileges, so it should work. (BTW, I can use the
right-click/sendTo method, and -- with a confirmation that it's OK -- it
works).

Seems like these are the symptoms:
1. from normal user Explorer :: to normal user Notepad :: works
2. from Runas Administrator Explorer :: to normal user Notepad :: works
3. from normal user Explorer :: to Runas Administrator Notepad :: correctly
shows "forbidden" drag-drop icon
4. from Runas Administrator Explorer :: to Runas Administrator Notepad ::
shows "forbidden" drag-drop icon.

I understand #3, but #4 makes no sense at all. When will this bug be fixed?
Maybe I'll have to turn off UAC so I can get some work done....
 
G

Guest

Even when I say "Run as Administrator" when starting it up? Strange. Well,
somehow I need a way to drag and drop from explorer into an app that is
running with elevated privileges.
 
G

Guest

Yes. This is one of the strangest things in Vista. You can go through all the
motions and it looks exactly like you are getting an elevated Explorer
window, but you don't. It just doesn't work. And, you can't drag and drop
between a low process and an elevated one as that would violate the little
bit of security boundary there actually is. In other words, you can't do what
it is you are trying to do.
 
G

Guest

Sooooo, Microsoft knows best! Thpttptptptpt! I need to do my job and it's
about time Windows got out of the way and let me! Instead, it keeps getting
more and more intrusive and obstructive. If I could move to Linux, I think I
would.
 
G

Guest

Out of curiosity: what is it that you are trying to accomplish? I've never
found a need to drag and drop into elevated Notepad windows that I couldn't
satisfy some other way. I have many times wished I had an elevated Explorer
window, but I have found ways of working around that too.
 
G

Guest

I'm trying to write asp.net code on my local machine in the
\inetpub\wwwroot\website directory and use my editor (not notepad, but it
sufficed for the example since everyone has it and it exhibits the same
problem) to edit the files. However, Vista gives anything under \inetpub
elevated permissions and requires any editor to have elevated permissions to
be able to write there.

Now, I could probably put my files somewhere else and point IIS to them, but
I really want them in \inetpub\wwwroot (with the attendant security settings)
to mimic the production environment as closely as possible without actually
editing the files on the staging server (so as not to step on the other
developers toes, for one).

I tried modifying the security settings on my wwwroot sub-folder, but the
system does not seem to want to let me. Any suggestions there?

Thanks,
 
G

Guest

I haven't used IIS on Vista very much personally, and the last time I wrote
web code in Notepad was 10 years ago, but there is no reason this shouldn't
work. As a work-around, I would just add yourself with write permissions to
the directory. What part of that is it that doesn't work? What steps do you
go through and what error messages do you get?
 
G

Guest

OK, I set the security for me

Hmmm. I thought I tried this before and it didn't work (i.e., set the
security, got no errors but still couldn't edit the files. Seems to work
now, though. Thanks!)

Even Drag-n-Drop! Yes!
 
G

Guest

Yes, you can get VS Express for free. Express has limitations that make it
not a good fit for us.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top