Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Admin permission without being admin

54 views
Skip to first unread message

foxidrive

unread,
Apr 25, 2013, 5:08:30 AM4/25/13
to
I didn't test this, but it sounds like a useful MUF.

http://stackoverflow.com/questions/16208137/batch-file-not-executing-directly-double-click


--
foxi

Todd Vargo

unread,
Apr 25, 2013, 3:00:44 PM4/25/13
to
On 4/25/2013 5:08 AM, foxidrive wrote:
> I didn't test this, but it sounds like a useful MUF.
>
> http://stackoverflow.com/questions/16208137/batch-file-not-executing-directly-double-click

That is interesting. Incomplete, but interesting.


--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)

phil.r...@gmail.com

unread,
Apr 25, 2013, 5:51:34 PM4/25/13
to
The situation was also complicated by the OP's use of 'taskkill.bat', which nobody picked up on. . . .

Phil Robyn

foxidrive

unread,
Apr 25, 2013, 11:39:31 PM4/25/13
to
Good point. I followed up with that information.

--
foxi

Todd Vargo

unread,
Apr 26, 2013, 9:39:04 AM4/26/13
to
I created the exact batch code (with a pause at the end) and it worked
as I expected it would. I also created a file named 'taskkill' without
extension in the same folder as the batch and it still worked.

Since renaming the batch worked for the OP, I would suggest asking OPs
post their PATHEXT list each time this comes up to verify the order of
precedence on the system in question is unmodified. Mine is as follows
and I do not recall modifying it.

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

NOTE: I am not advocating giving batch files the same name as known
system commands. I am more interested in why it fails for some people
but works for others. In this case, the OP asked "What happened first
time? And why it is executing second time?" which suggests there is some
difference between dbl-clicking in explorer and typing it at the command
prompt.

Todd Vargo

unread,
Apr 26, 2013, 9:59:32 AM4/26/13
to
On 4/26/2013 9:39 AM, Todd Vargo wrote:
>
> I created the exact batch code (with a pause at the end) and it worked
> as I expected it would. I also created a file named 'taskkill' without
> extension in the same folder as the batch and it still worked.
>
> Since renaming the batch worked for the OP, I would suggest asking OPs
> post their PATHEXT list each time this comes up to verify the order of
> precedence on the system in question is unmodified. Mine is as follows
> and I do not recall modifying it.
>
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>
> NOTE: I am not advocating giving batch files the same name as known
> system commands. I am more interested in why it fails for some people
> but works for others. In this case, the OP asked "What happened first
> time? And why it is executing second time?" which suggests there is some
> difference between dbl-clicking in explorer and typing it at the command
> prompt.

Disregard the previous message...

I found a defect in my testing. After creating the test batch, I moved
it to another folder renamed it but forgot to rename it back.
Unfortunately, I discovered my error after posting but cancel messages
do not work with all servers including mine.

Frank Westlake

unread,
Apr 26, 2013, 10:23:30 AM4/26/13
to
2013-04-25 12:00, Todd Vargo:
> On 4/25/2013 5:08 AM, foxidrive wrote:
>> I didn't test this, but it sounds like a useful MUF.
>>
>> http://stackoverflow.com/questions/16208137/batch-file-not-executing-directly-double-click
>
> That is interesting. Incomplete, but interesting.

I haven't been able to get drag and drop to a console window to function
with Windows 8/64. The mouse pointer has the drag and drop symbol all
the way to button release but nothing gets pasted into the command line.
If other Windows 8 users have the same problem then perhaps they've
plugged the security hole but haven't yet worked out a proper solution
which would permit drag ans drop again.

Frank


0 new messages