Windows Vista Cannot Run Scripts anymore on VISTA!!!! Weird One..

Joined
Nov 18, 2009
Messages
3
Reaction score
0
Recently I tried to write a script on my VISTA Home Ultimate Lenovo SL500 notebook.
I wanted to automate a repository write using a package tool and a git commit (version control).

But when I double click any BAT or CMD scripts in VISTA windows explorer this simply opens a CMD window
but does not execute any commands of the script!

I have never seen this before (since NT4 days) anywhere.

The ftype command returns as normal
batfile="%1" %*
cmdfile="%1" %*

Is there any secret script execution authorization I should know about?
Ah, by the way, UAC is off ... I am logged as member of Administrator group!

And executing a script from within the CMD shell works!
But not starting it from the windows explorer...

Any input is greatly appreciated, I am pulling my hair out on this for a while now.
 
Joined
Apr 19, 2008
Messages
4,081
Reaction score
1
jamesvista said:
Recently I tried to write a script on my VISTA Home Ultimate Lenovo SL500 notebook.
I wanted to automate a repository write using a package tool and a git commit (version control).

But when I double click any BAT or CMD scripts in VISTA windows explorer this simply opens a CMD window
but does not execute any commands of the script!

I have never seen this before (since NT4 days) anywhere.

The ftype command returns as normal
batfile="%1" %*
cmdfile="%1" %*

Is there any secret script execution authorization I should know about?
Ah, by the way, UAC is off ... I am logged as member of Administrator group!

And executing a script from within the CMD shell works!
But not starting it from the windows explorer...

Any input is greatly appreciated, I am pulling my hair out on this for a while now.


Hi James
happywave.gif
#

Welcome...
happywave.gif
happywave.gif



Any chance of posting your script for us so we can habve a look ? Might be something you are doing in the script that is causing this....
 
Joined
Nov 18, 2009
Messages
3
Reaction score
0
I found something about limited permissions running .exe from the CMD scripts
so my test case is only calling simple commands.

@echo on
dir .
 
Last edited:
Joined
Apr 19, 2008
Messages
4,081
Reaction score
1
jamesvista said:
it was a simple test scripts to make the point:

dir .


I found something about limited permisions running .exe from the CMD scripts so this is going only simple commands.

Wellsharing what you found plus your test script might just help us help ypu. If you can't share, wel what is the point in me trying to help ? (rhetorical)
 
Joined
Nov 18, 2009
Messages
3
Reaction score
0
Hi,
sorry if this sounded that I am omitting any information.
the script I am trying to run is a file called test.cmd
it contains 2 lines with simple commands:

@echo on
dir .

trying to start it from windows explorer only opens the CMD window. No commands are executed.
In my experience this is wrong and I am trying to resolve this.

I dont understand your comment about sharing? what you want me to share?
the reference to vista having security for executing .exe files?

That was about running restricted commands as Administrator if you are not logged in as such. (UAC)
but as I am not running any executables only internal commands this does not apply here.

BTW:
I did run a Avira viruscheck on the system already... nothing found..
 
Joined
Jan 1, 2010
Messages
3
Reaction score
0
Did you try executing these commands in the cmd shell directly. If they go through fine, then you should check your registry settings. Something may be messed up there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top