Windows Vista Forums
Vista Forums Home Join Vista Forums Tech Publications Windows 7 Forum Vista Tutorials Webcasts Tags

Welcome to Vista Forums we are your forum for Windows Vista help and discussion. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

How to save a file in Vista's Windows Folder

Update your Vista Drivers
Reply
 
Thread Tools Display Modes
Old 09-27-2007   #1 (permalink)
Broadband Al
Guest


 

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)
Brink's Avatar
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is offline

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

Quote:
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]
Guest


 

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
Guest


 

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
Update your Vista Drivers

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Save File dialog default folder location sfnch General Discussion 7 06-15-2008 06:39 PM
Windows mail save folder Belinda Vista mail 2 05-14-2008 05:38 PM
File and Folder Directory List - Print and Save Brink Tutorials 4 03-15-2008 06:25 PM
Include shared folder/file in "save" file list Bill W Vista General 1 08-08-2007 05:49 PM
Can't save file in localized folder Carl Vista file management 2 08-06-2007 05:58 PM


Complimentary Industry Resources

Vista Forums has joined forces with TradePub.com to offer you a new, exciting, and entirely free professional resource. Visit http://vistax64.tradepub.com today to browse our selection of complimentary Industry magazines, white papers, webinars, podcasts, and more across 34 industry sectors. No credit cards, coupons, or promo codes required. Try it today!




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 2005-2008

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 47 48 49 50 51