Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #1030
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "Mayayana" <mayayana@invalid.nospam> |
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: Operation Requires Elevation |
| Date | Thu, 29 Mar 2012 09:34:59 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 51 |
| Message-ID | <jl1o7h$eus$1@dont-email.me> (permalink) |
| References | <VA.00003a8b.3e017238@ukrm.net> |
| Injection-Date | Thu, 29 Mar 2012 13:31:30 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="hA0LZgtsTmFlvERssm/+Tg"; logging-data="15324"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fVX5F9xPnpxtqoENWvBVy6U8gFDKVw8c=" |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.5512 |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5512 |
| Cancel-Lock | sha1:Wee2DtHRHf9bjjTYGf3VteIRBFc= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Xref | csiph.com comp.lang.basic.visual.misc:1030 |
Show key headers only | View raw
Under normal conditions you don't have access to much other than the user App Data folder on Vista/7. I was recently testing a VBScript on Win7 that creates and uses an IE instance as an HTA. I had no problem with that, but Win7 wouldn't let me, as Admin, put an image file on C drive (needed for the test) without elevation! When it comes to Vista/7, with the exception of whatever you set up during program install, you have to assume that you're running as a corporate employee who has no right to do anything but send email or write MS Office files that are auto-saved to their docs folder. That employee is not even supposed to know about the file system (from Microsoft's point of view), and Windows/MS Office is increasingly designed to enforce that. You can change permissions programmatically on your program subfolders during install. That's what I do, so that I have a location to work with temp files, etc. Or you can create a folder in App Data and then don't try to do anything anywhere else. The standard protocol for that is to create a company folder first, so it would be like: ...\CompanyName\ProgramName\Templates\ | | One W7 machine recently fried it's HDD and had to be | completely re-installed from scratch. | | It is running my app. from a share on a Vista machine. | After a few stumbles we finally persuaded it to run Fine, | except when it wants to generate an output via an excel | template. | | Code snipet: | | Set oExcel = New Excel.Application | Set oWB = oExcel.Workbooks.Open(sFile) | Set oWS = oWB.ActiveSheet | | 'sFile' is a .xlt file in app.path\Templates on the server. | | This machine fails every time, and my error log reports: | "the requested operation requires elevation" | | -- | Rob Pearson | | |
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Operation Requires Elevation R C Nesbit <spam@ukrm.net> - 2012-03-29 13:42 +0100 Re: Operation Requires Elevation "Mayayana" <mayayana@invalid.nospam> - 2012-03-29 09:34 -0400 Re: Operation Requires Elevation ralph <nt_consulting64@yahoo.net> - 2012-03-29 08:33 -0500
csiph-web