Solved

Using Program Files Folder in Win7

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

778 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