1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TCC cannot find the path specified

Discussion in 'Support' started by Mr. Jiggs, Oct 27, 2008.

  1. Mr. Jiggs

    Joined:
    May 29, 2008
    Messages:
    37
    Likes Received:
    0
    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
     
  2. dim

    dim Dimitry Andric

    Joined:
    May 31, 2008
    Messages:
    202
    Likes Received:
    0
    On 2008-10-27 17:58, 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?
     
  3. Mr. Jiggs

    Joined:
    May 29, 2008
    Messages:
    37
    Likes Received:
    0
    It's a REG_SZ.


    dim wrote:




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


    Quote:



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




    ..


    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?
     
  4. dim

    dim Dimitry Andric

    Joined:
    May 31, 2008
    Messages:
    202
    Likes Received:
    0
    On 2008-10-27 19:53, Mr. Jiggs wrote:

    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. Mr. Jiggs

    Joined:
    May 29, 2008
    Messages:
    37
    Likes Received:
    0
    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:




    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.
     

Share This Page