Solved

Using Program Files Folder in Win7

Posted on 2011-02-10
3
572 Views
Last Modified: 2012-05-11
Is it still possible to put files and folders into the "Program Files" Folder with VBscript in Win7?  I tried and couldn't get it to work even with Admin password.  It wouldn't copy files and the folder I created was read only.  I tried to change it but it always went back to read-only.  Any idea?
0
Comment
Question by:schmir1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:skipper68
ID: 34868144
Have you tried running the script as administrator?  
     Right-click, "Run As Administrator"
0
 

Author Comment

by:schmir1
ID: 34871410
Yes, I did run as administrator but still had problems.
0
 
LVL 9

Accepted Solution

by:
skipper68 earned 500 total points
ID: 34874368
Can you run the vbs file from the Administrator's "Documents" directory?

Here's also a sample script to run a file as an admin in Vista\Windows 7.  Maybe the objfile syntax has similar functionality?

Set objSh = CreateObject("Shell.Application")
objSh.ShellExecute "notepad.exe", "" , "", "runas", 1
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question