Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

Copying files to subfolders of Program Files

Windows Vista General






Speedup My PC
Reply
  #1 (permalink)  
Old 01-08-2009
 

Join Date: Jan 2009
Posts: 1
John Wilheim is on a distinguished road
Thanks: 0
Thanked 0 Times in 0 Posts
Copying files to subfolders of Program Files
My company writes software that includes XTensions to QuarkXPress, which uses a default installation path of C:\Program Files\Quark\QuarkXPress VN, where VN is a version number, such as 6.5 or 8.
When we have new version of our XTensions, they need to be copied to the XTensions folder beneath QuarkXPress VN
For years, we have had a mechanism that self-updates user; each time a user launches the program, a command or batch file is run that checks for new XTensions and, if it detects them, it copies them to the desired folder, then launches the program.
But, with Vista, a non-administrator user cannot copy files to a subfolder of Program Files, making this self-updating impossible unless every user is an administrator, which is not a viable option.
Does anyone know of a method that can be used in a batch file to elevate a non-admin user to an admin user so that files can be copied to a subfolder of Program Files? I have experimented with SkipUAC and can make it work from a command line, but not from within a batch file.
Any help would be greatly appreciated.
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
List files in folder with subfolders at top? Steve Blake microsoft.public.windows.vista.file management 1 06-04-2008 14:16
STOP Sharing folders, files and subfolders -jim microsoft.public.windows.vista.networking sharing 0 02-24-2008 13:34
How to use icacls.exe to fully enable users to subfolders/files Tom microsoft.public.windows.vista.security 5 01-30-2008 04:49
Copying a file into \Program Files\.. using Explorer AndrueC microsoft.public.windows.vista.administration accounts passwords 0 01-09-2008 13:06
Copying files to Program Files directory Parrot microsoft.public.windows.vista.file management 13 08-23-2007 07:14




All times are GMT +1. The time now is 00:47.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120