?
Solved

Using Program Files Folder in Win7

Posted on 2011-02-10
3
Medium Priority
?
580 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

770 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