Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista - How to save a file in Vista's Windows Folder

Reply
 
Old 09-27-2007   #1 (permalink)
Broadband Al


 
 

How to save a file in Vista's Windows Folder

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

My System SpecsSystem Spec
Old 09-27-2007   #2 (permalink)


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: How to save a file in Vista's Windows Folder

Quote  Quote: Originally Posted by Broadband Al View Post
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.

Administrator Account

Shawn
My System SpecsSystem Spec
Old 09-27-2007   #3 (permalink)
Steve Riley [MSFT]


 
 

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@xxxxxx
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com


"Broadband Al" <BroadbandAl@xxxxxx> wrote in message
news:719EAE33-963E-487A-8DCB-CE6ABD098F6C@xxxxxx
Quote:

> 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
My System SpecsSystem Spec
Old 09-28-2007   #4 (permalink)
munchie


 
 

Re: How to save a file in Vista's Windows Folder

On Sep 27, 3:02 pm, Broadband Al
<Broadban...@xxxxxx> wrote:
Quote:

> 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

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Missing Folder Names in Vista's Windows Explorer Vista General
Save File dialog default folder location General Discussion
File and Folder Directory List - Print and Save Tutorials
Include shared folder/file in "save" file list Vista General
Can't save file in localized folder Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46