How to save a file in Vista's Windows Folder

  • Thread starter Thread starter Broadband Al
  • Start date Start date
B

Broadband Al

Guest
I have Excel VB code that saves a tiny ini file in the Windows Directory.
Worked a treat on XP for years. It won't run on Vista because of the
security permissions for the Windows folder. I can work around it for new
files but all the hundreds of existing examples of my spreadsheet crash on
opening on a Vista machine. I don't want to reprogram every instance - all I
need is to save a tiny file in the Windows Directory! But how???
--
Oxfordshire, UK
 
Re: How to save a file in Vista's Windows Folder


Broadband Al;465083 Wrote:
> I have Excel VB code that saves a tiny ini file in the Windows
> Directory.
> Worked a treat on XP for years. It won't run on Vista because of the
> security permissions for the Windows folder. I can work around it for
> new
> files but all the hundreds of existing examples of my spreadsheet crash
> on
> opening on a Vista machine. I don't want to reprogram every instance -
> all I
> need is to save a tiny file in the Windows Directory! But how???
> --
> Oxfordshire, UK


Hi Broadband Al,

You can enable the Built-in Administrator account and run the program
in that account. This account does not need permission to do anything
like in XP. This tutorial will show you how to do it.

http://www.vistax64.com/tutorials/67567-administrator-account.html

Shawn


--
brink

*There are no dumb questions, just the people that do not ask them.*
WWW.VISTAX64.COM (\"HTTP://WWW.VISTAX64.COM\")
*Please post feedback to help others.*
 
Re: How to save a file in Vista's Windows Folder

The Windows folder is for operating system files, and nothing else. We have
tightened the security on that folder to reflect this fact. I would
encourage you to store the .ini files in a folder that you create. Then look
for a way to do some kind of (possibly programmatic) search-and-replace in
your spreadsheet to change the existing references to the new location.

--
Steve Riley
steve.riley@microsoft.com
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com


"Broadband Al" <BroadbandAl@discussions.microsoft.com> wrote in message
news:719EAE33-963E-487A-8DCB-CE6ABD098F6C@microsoft.com...
> I have Excel VB code that saves a tiny ini file in the Windows Directory.
> Worked a treat on XP for years. It won't run on Vista because of the
> security permissions for the Windows folder. I can work around it for new
> files but all the hundreds of existing examples of my spreadsheet crash on
> opening on a Vista machine. I don't want to reprogram every instance - all
> I
> need is to save a tiny file in the Windows Directory! But how???
> --
> Oxfordshire, UK
 
Re: How to save a file in Vista's Windows Folder

On Sep 27, 3:02 pm, Broadband Al
<Broadban...@discussions.microsoft.com> wrote:
> I have Excel VB code that saves a tiny ini file in the Windows Directory.
> Worked a treat on XP for years. It won't run on Vista because of the
> security permissions for the Windows folder. I can work around it for new
> files but all the hundreds of existing examples of my spreadsheet crash on
> opening on a Vista machine. I don't want to reprogram every instance - all I
> need is to save a tiny file in the Windows Directory! But how???
> --
> Oxfordshire, UK


If you *really* want to place it in the Windows folder, run the
Command Prompt as administrator and copy it there. So far, I've had
nothing but success with this technique.

-- Munchie
 
Back
Top