TCC cannot find the path specified

May 29, 2008
37
0
Medway, Mass.
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
205
1
Netherlands
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?
 
May 29, 2008
37
0
Medway, Mass.
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
205
1
Netherlands
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. :)
 
May 29, 2008
37
0
Medway, Mass.
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.
 
Similar threads
Thread starter Title Forum Replies Date
Patulus TCHistoryLog: TCC: (Sys) The system cannot find the path specified Support 15
E Cannot paste dollar sign into TCC on Windows 10 1803 Support 7
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
newbie Cannot make a btm/tcc.exe window wider Support 4
A Can you set an image file 'tag' with TCC/4NT? Support 2
P PSHELL not working in TCC 26 Support 9
vefatica SCRIPT makes TCC disappear. Support 16
MickeyF TCC suddenly crashing (not TCC's fault) Support 2
Z CMDDebug - TCC unknown command Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 28.02.17 Support 0
vefatica TCC startup: /IP not honored after /K Support 1
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0

Similar threads