Go Back   Computer Forums > General Computing > Hardware
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 08-21-2009, 08:43 PM   #1
Solid State Member
 
Join Date: Jun 2009
Posts: 19
Default How can i allow a batch file administrator permission?

I developed a batch file on xp that will add text to a file. When i run the batch file on vista or windows 7 it says "Acces is denied".

My question is, is there anyway to either bypass this to allow access, or simply ask the user permission.
__________________

shrshr429 is offline   Reply With Quote
Old 08-22-2009, 05:07 AM   #2
Fully Optimized
 
ssc456's Avatar
 
Join Date: Jan 2007
Posts: 4,279
Send a message via MSN to ssc456
Default Re: How can i allow a batch file administrator permission?

if you right click the file and click run as . . . or run as administrator it should be fine.

alternatively you could turn off UAC depending on who uses the computer, UAC can be a big pain in the ass have a look here http://www.petri.co.il/disable_uac_in_windows_vista.htm
__________________

__________________
He who has never failed has never attempted anything worth succeeding at.

Dont Eat Animals, Its Not Good For Them And They Dont Like It!
ssc456 is offline   Reply With Quote
Old 08-22-2009, 03:55 PM   #3
Solid State Member
 
Join Date: Jun 2009
Posts: 19
Default Re: How can i allow a batch file administrator permission?

Yea i thought of that, see the problem with that is the program autoruns off the cd, id rather not have to tell the user to navigate throughout the cd to find the file then choose administrator. Is there anyway to make the program as the user for permission. I was thinking of making it an .exe file, im pretty sure windows will then ask the user for permission when it autoruns.
shrshr429 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT -5. The time now is 08:49 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0