Solved

Using Program Files Folder in Win7

Posted on 2011-02-10
3
558 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 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now