change in ftype is not being read, how can I make it be read or what is being read before it?

خرید بک لینک

I have a file extension .vbsc which is associated with cscript and i'd like it associated with something else, even calc.exe I just want to be able to change the association but I don't seem to be able to. But I can for other extensions. Below is a demonstrartion.

In the demonstration, I use assoc and ftype to create an association for a file extension .ab5 and the demonstration shows that works. I then change the association so it brings up another program, the demonstration shows that works. I then try it with my problem extension, and it doesn't work. And it's not because my problem extension is 4 char long, there are many long extensions.

There is a second demonstration below this one which I describe where you scroll down to it. So it's reading something else before ftype.

C:Usersuser>assoc | grep -i vbsc
.vbsc=VBS_Cscr

C:Usersuser>assoc .ab5=AB5file
.ab5=AB5file

C:Usersuser>ftype AB5file=c:windowssystem32calc.exe
AB5file=c:windowssystem32calc.exe

C:Usersuser>echo asdf>a.ab5

C:Usersuser>a.ab5

C:Usersuser>rem the above brings up calculator

C:Usersuser>ftype AB5file=c:windowssystem32charmap.exe
AB5file=c:windowssystem32charmap.exe

C:Usersuser>a.ab5

C:Usersuser>rem the above things up charmap

C:Usersuser>abc.vbsc
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: There is no script engine for file extension ".vbsc".

C:Usersuser>assoc | find /i "vbs"
.vbs=VBSFile
.vbsc=VBS_Cscr

C:Usersuser>ftype | find /i "vbs"
VBSFile=%SystemRoot%System32WScript.exe "%1" %*
VBS_Cscr=c:windowssystem32calc.exe

C:Usersuser>

In this demonstration I delete the extension. It still associates with cscript.exe

Deleting the extension

C:WindowsSystem32>assoc .vbsc=

C:WindowsSystem32>ftype VBSFile=

C:WindowsSystem32>aaa.vbsc
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: There is no script engine for file extension ".vbsc".

C:WindowsSystem32>

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 347 تاريخ: سه شنبه 31 فروردين 1395 ساعت: 18:41

صفحه بندی