Windows 7 Forums


Reply
Thread Tools

Run an instal.bat file as administrator

 
 
bd
Guest
Posts: n/a
Thanked:
 
      08-07-2011
I am trying to load an instal.bat file for the MS game Hold'em Poker. I do
not have the run as administrator choice in the context menu. How could I
run this administrator? Windows 7 Ultimate 64bit.

thank you
 
Reply With Quote
 
 
 
 
Gene E. Bloch
Guest
Posts: n/a
Thanked:
 
      08-07-2011
On Sat, 06 Aug 2011 19:47:43 -0500, bd wrote:

> I am trying to load an instal.bat file for the MS game Hold'em Poker. I do
> not have the run as administrator choice in the context menu. How could I
> run this administrator? Windows 7 Ultimate 64bit.
>
> thank you


Type cmd in the search bar in the start menu. Cmd (actually cmd.exe)
will appear in the pane above that. Right click on that and choose Run
as administrator.

In the resulting command window, navigate to where the batch file is and
run it from the command line. I.e., type its name and press enter.

If you're unfamiliar with the command window:

To navigate in the command window, type cd "folder name". The quotes are
needed around any path name that contains blanks. You might be happier
starting with "cd \" (no quotes) which will get you to the root.

Then you can cd one layer at a time to get to the desired directory. Any
time you're confused, type cd by itself, which will display the current
folder.

One layer at a time:
to get to C:\a\b\c

do this:
cd \
cd a
cd b
cd c

If you're not on the correct drive (such as X, first type x: followed
by Enter.

--
Gene E. Bloch (Stumbling Bloch)
 
Reply With Quote
 
bd
Guest
Posts: n/a
Thanked:
 
      08-07-2011
"Gene E. Bloch" <not-> wrote in
news::

> On Sat, 06 Aug 2011 19:47:43 -0500, bd wrote:
>
>> I am trying to load an instal.bat file for the MS game Hold'em Poker.
>> I do not have the run as administrator choice in the context menu.
>> How could I run this administrator? Windows 7 Ultimate 64bit.
>>
>> thank you

>
> Type cmd in the search bar in the start menu. Cmd (actually cmd.exe)
> will appear in the pane above that. Right click on that and choose Run
> as administrator.
>
> In the resulting command window, navigate to where the batch file is
> and run it from the command line. I.e., type its name and press enter.
>
> If you're unfamiliar with the command window:
>
> To navigate in the command window, type cd "folder name". The quotes
> are needed around any path name that contains blanks. You might be
> happier starting with "cd \" (no quotes) which will get you to the
> root.
>
> Then you can cd one layer at a time to get to the desired directory.
> Any time you're confused, type cd by itself, which will display the
> current folder.
>
> One layer at a time:
> to get to C:\a\b\c
>
> do this:
> cd \
> cd a
> cd b
> cd c
>
> If you're not on the correct drive (such as X, first type x:
> followed by Enter.
>


Thank you Gene, you unstumbled the bloch. That brought back the old DOS
days. I never even thought of that. What I am confused about is why the
run as administrator doesn't show in that particulat context menu.

Anyway, thank you for the help.
 
Reply With Quote
 
G. Morgan
Guest
Posts: n/a
Thanked:
 
      08-07-2011
bd wrote:

>Thank you Gene, you unstumbled the bloch. That brought back the old DOS
>days. I never even thought of that. What I am confused about is why the
>run as administrator doesn't show in that particulat context menu.


Rename the file to .cmd and you should be able to create a shortcut with
elevated privileges.

 
Reply With Quote
 
bd
Guest
Posts: n/a
Thanked:
 
      08-07-2011
G. Morgan <> wrote in
news::

> bd wrote:
>
>>Thank you Gene, you unstumbled the bloch. That brought back the old
>>DOS days. I never even thought of that. What I am confused about is
>>why the run as administrator doesn't show in that particulat context
>>menu.

>
> Rename the file to .cmd and you should be able to create a shortcut
> with elevated privileges.
>
>


Thanks for the response. That also worked. What an education these
newsgroups provide. Good job to both responders.

 
Reply With Quote
 
Gene E. Bloch
Guest
Posts: n/a
Thanked:
 
      08-08-2011
On Sat, 06 Aug 2011 22:56:25 -0500, bd wrote:

> Thank you Gene, you unstumbled the bloch. That brought back the old DOS
> days. I never even thought of that. What I am confused about is why the
> run as administrator doesn't show in that particulat context menu.


Thank for your comment - I got a good laugh from the unstumble :-)

I was going to say you can't run a batch file in administrator mode, but
when I read G. Morgan's post I also learned something new.

Or maybe not. I just right clicked on a bat file I have lying around,
and I did get the choice to run it as Administrator.

So I set up a file in the Program Files (x86) folder, just to make it
tough, and I could run it both as a bat file and a cmd file, in normal
mode or in administrator mode. I had it create a file there, which
failed unless the programs were run as administrator.

--
Gene E. Bloch (Stumbling Bloch)
 
Reply With Quote
 
 
 
Reply

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 7 Tip of the Week: Smarter File Copying Nibiru2012 General Discussion 9 10-14-2011 06:29 PM
AcePad Application (Coded by Ace) Ace Software 16 08-10-2011 01:30 PM
Stand-Alone Software Every 7 System Should Have Available Elmer BeFuddled General Discussion 6 05-15-2011 06:52 AM
Help!: Administrator has locked himself out of a file Synth Security 19 01-08-2011 06:18 PM
Windows 7 install keeps rebooting Stephen47 Installation, Setup and Updates 32 05-24-2009 06:26 PM


All times are GMT +1. The time now is 04:34 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

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