How to save a file in Vista's Windows Folder

Posted: 09-27-2007, 08:02 PM
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
Reply With Quote

Responses to "How to save a file in Vista's Windows Folder"

brink
Guest
Posts: n/a
 
Re: How to save a file in Vista's Windows Folder
Posted: 09-27-2007, 10:19 PM

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/67...r-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.*
Reply With Quote
Steve Riley [MSFT]
Guest
Posts: n/a
 
Re: How to save a file in Vista's Windows Folder
Posted: 09-27-2007, 11:09 PM
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
Reply With Quote
munchie
Guest
Posts: n/a
 
Re: How to save a file in Vista's Windows Folder
Posted: 09-29-2007, 02:19 AM
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

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls. update me on Vista's Program Files folder Johan Windows Vista Administration 1 04-02-2008 12:41 AM
Specifying publisher for Vista's autorun with HTML file Kris Windows Vista Security 2 08-24-2007 01:12 PM
Can't save file in localized folder Carl Windows Vista File Management 2 08-06-2007 10:58 PM
What is up with Vista's file system? Stan Shankman Windows Vista File Management 7 08-15-2006 08:59 AM
Can I permanently change Save File target folder? Jeff G Windows XP Configuration & Management 2 11-13-2005 05:03 PM