TCC not recognize maped drive

Dec 11, 2017
16
0
Hi,
I have TCC 17.00.77 (oldest version:) ) and i try to create directory in a network drive z for example.
I got this error:
[C:\Program Files (x86)\JPSoft\TCMD17]Z:
TCC: (Sys) The system cannot find the drive specified.
"Z:"
When i open CMD its work manualy but not as a batch script and in tcc its even not recognize the network drive by also manually and in script.
I'm new in TCC and i'll be happy to know what can be the solution for this issue
Thanks
Chen
 
Dec 11, 2017
16
0
Thanks a lot!
Now UNC path worked.
my problem now is that tcc not recognized Mapd drive like Z: while cmd (typed net use) see the drive?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,497
91
Albuquerque, NM
prospero.unm.edu
How are you mapping the drive? How do you know that it is mapped? What does NET USE report? Vince's question is cogent.

TCC does reliably work with mapped drives, in my experience. However, TCC will not automatically map them for you -- as CMD.EXE occasionally will.
 
Dec 11, 2017
16
0
Hi Charles,
I start by saying that my TCC version is a bit old (ver' 17.00), and i mapped a network drive by explorer (gui method..).
So now i can see the network drive in the window explorer and by command net use in cmd as i said.
i restart the OS (windows 2012 r2) to maybe restart TCC but it not helped.

Here is the output of the command in TCC when i typed NET USE
[C:\Program Files (x86)\JPSoft\TCMD17]net use
New connections will be remembered.

There are no entries in the list.

How do you suggest me to maped what already mapd and be seeing by cmd?
 
Jun 2, 2008
359
4
Sounds like you're running TCC elevated, but CMD is not. For whatever reason, when UAC is enabled, Windows does not make the drives/connections established in unelevated processes (such as explorer) available to elevated ones. They need to be re-established, such as in AnrDaemon's net use "\\remote\IPC$".
 
May 20, 2008
11,547
107
Syracuse, NY, USA
NET.EXE is a stand-alone executable program. NET USE should work exactly the same when run from CMD or TCC. What does NET USE say when you run it from CMD?
 
May 20, 2008
11,547
107
Syracuse, NY, USA
Sounds like you're running TCC elevated, but CMD is not. For whatever reason, when UAC is enabled, Windows does not make the drives/connections established in unelevated processes (such as explorer) available to elevated ones. They need to be re-established, such as in AnrDaemon's net use "\\remote\IPC$".
Good one TEA-Time! If that's the problem, perhaps this registry entry will fix it permanently.

Code:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

        Value: EnableLinkedConnections
        Data:  1 (0x00000001)
 
Jun 2, 2008
359
4
Thanks guys. Hopefully that's Chen's issue. I normally have UAC disabled to avoid exactly those types of issues, but I have it enabled on my computer at work so it doesn't behave any differently than the users I support, so the scenario sounded familiar. Otherwise I probably never would have known.

Thanks for the registry setting, Vince! For some reason I never thought to look for a policy/registry setting for that annoyance. :-/ I'll try it tomorrow at work.
 
May 20, 2008
11,547
107
Syracuse, NY, USA
Thanks for the registry setting, Vince! For some reason I never thought to look for a policy/registry setting for that annoyance. :-/ I'll try it tomorrow at work.
Did you Google it? I think it's right to the point. I did it so long ago that I forgot about it and I only rediscovered it after some Googling. I can't remember mapping a drive unelevated and not being able to see it elevated.
 
Jun 2, 2008
359
4
Yup, I did Google it. It should be perfect. I also saw that apparently an update stopped the setting from affecting DFS drive mappings (a type of mapping I've never used) until it was fixed like 6 months later. Heh
 
Dec 11, 2017
16
0
Hi,
First off all, thanks so much for your help i realy apriciate it .
I did what Vefatica suggets about modify the registry and it's worked like a magic :) Thanks!
I'm not so familiare with TCC, about running TCC elevated, what does it mean?
We use tcc in backgroung (run scripts by CI tools/ jenkins so i would like to know (since i dont know what is non/elevated
mode) what would be the best way to use TCC for this cause.
and if i need to work in a specific mode, how do i changed it permanently..for the good ;)
Cheers
Chen
 
Last edited:
Aug 23, 2010
647
9
"Elevated" means an application is running with administrator access enabled.
In modern Windows (Vista+), being in Administrators group does not automatically equals having administration access to the system.
You have to explicitly elevate the program.

For comparison:
Code:
$ id -G
197121 197611 197610 545 4 66049 11 15 113 4095 66048 262154 401408

# id -G
197121 114 197611 197610 544 545 4 66049 11 15 113 4095 66048 262154 405504

Particularly, the group 114 (Local account, member of Administrators group) and 544 (the local Administrators group itself) only present in elevated token.

I would discourage from altering local policy like suggested. Instead, make up your mind and stick to one or another mode of operation.
 
Dec 11, 2017
16
0
HI,

Thanks AnrDeamon for answer, im using a window server and i understand what you mean.

But stil not no how to open tcc by a user or Admin (Admin=unelevated OR no AdminUser=elevated).

Cheers
Chen
 
Aug 23, 2010
647
9
If you need elevated shell often, you can create a shortcut and set it to start with elevated privileges.
Don't make a mistake, though, the option you need is located on the Shortcut tab (Advanced… - Run as administrator).
 
Similar threads
Thread starter Title Forum Replies Date
A Tcc does not recognize "bcdedit" Support 20
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
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
vefatica TCC waits for Office apps Support 4

Similar threads