Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using Program Files Folder in Win7

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

972 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