TCC cannot find the path specified

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
I'm getting an unexpected error trying to execute
files that rely on executables in Windows\System32…

C:\ ver /r

TCC 9.02.152 Windows XP [Version 5.1.2600]
TCC Build 152 Windows XP Build 2600 Service Pack 3
Registered to TecDoc Digital Solutions - 2 System License

C:\ c:\Playbook\Winenv.vbs
TCC: (Sys) The system cannot find the path specified.
"%SystemRoot%\System32\WScript.exe"

C:\ echo %SystemRoot%
C:\WINDOWS

C:\ dir %SystemRoot%\System32\WSC*.*

Volume in drive C is unlabeled Serial number is 4c8a:5146
Directory of C:\WINDOWS\System32\WSC*.*

4/14/2008 5:42a 13,824 wscntfy.exe
5/08/2008 7:24a 155,648 wscript.exe
4/14/2008 5:42a 80,896 wscsvc.dll
4/14/2008 5:42a 148,480 wscui.cpl
398,848 bytes in 4 files and 0 dirs 405,504 bytes allocated
395,542,216,704 bytes free


Any clues as to why TCC apparently isn't expanding %SystemRoot% ?

mr.Jiggs
 

dim

Dimitry Andric
May 31, 2008
204
1
Netherlands
#2
On 2008-10-27 17:58, Mr. Jiggs wrote:

> C:\ c:\Playbook\Winenv.vbs
> TCC: (Sys) The system cannot find the path specified.
> "%SystemRoot%\System32\WScript.exe"
..

> Any clues as to why TCC apparently isn't expanding %SystemRoot% ?
Can you please open Registry Editor, and go to the key:

HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command

Is the (Default) value there a REG_SZ or a REG_EXPAND_SZ?
 
#3
It's a REG_SZ.


dim wrote:




On 2008-10-27 17:58, Mr. Jiggs wrote:


Quote:



> C:\
c:\Playbook\Winenv.vbs

> TCC: (Sys) The system cannot find the path specified.
> "%SystemRoot%\System32\WScript.exe"



..


Quote:



> Any clues as
to why TCC apparently isn't expanding %SystemRoot% ?




Can you please open Registry Editor, and go to the key:

HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command

Is the (Default) value there a REG_SZ or a REG_EXPAND_SZ?
 

dim

Dimitry Andric
May 31, 2008
204
1
Netherlands
#4
On 2008-10-27 19:53, Mr. Jiggs wrote:

>> Can you please open Registry Editor, and go to the key:
>> HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command
>> Is the (Default) value there a REG_SZ or a REG_EXPAND_SZ?
> It's a REG_SZ.
Right, that's the cause. REG_SZ's are not supposed to expand any
embedded environment variables automagically.

On my system it's a REG_EXPAND_SZ, and if I check my "out-of-box" XP
install in VMware, it's also that type.

You can fix it using either the REG.EXE command in Windows itself:

reg add HKLM\SOFTWARE\Classes\VBSFile\Shell\Open\Command /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\WScript.exe \"%%1\" %%*" /f

or using TCC's own regset function:

echo %@regset[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VBSFile\Shell\Open\Command\,REG_EXPAND_SZ,%%SystemRoot%%\System32\WScript.exe "%%1" %%*]

(shows 0 if successful). And yes, the double % signs are needed. :)
 
#5
That was it.
I have no idea how that data type got changed.
Do I really want to try to track THAT down ?!?!?!

I think I'll call Billy G.

Thanks !!

mr.Jiggs

dim wrote:




On 2008-10-27 19:53, Mr. Jiggs wrote:


Quote:



>> Can you
please open Registry Editor, and go to the key:

>> HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command
>> Is the (Default) value there a REG_SZ or a REG_EXPAND_SZ?
> It's a REG_SZ.



Right, that's the cause. REG_SZ's are not supposed to expand any
embedded environment variables automagically.

On my system it's a REG_EXPAND_SZ, and if I check my "out-of-box" XP
install in VMware, it's also that type.

You can fix it using either the REG.EXE command in Windows itself:

reg add HKLM\SOFTWARE\Classes\VBSFile\Shell\Open\Command /ve /t
REG_EXPAND_SZ /d "%%SystemRoot%%\System32\WScript.exe \"%%1\" %%*" /f

or using TCC's own regset function:

echo %@regset[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VBSFile\Shell\
Open\Command\,REG_EXPAND_SZ,%%SystemRoot%%\System3 2\WScript.exe "%%1"
%%*]

(shows 0 if successful). And yes, the double % signs are needed.