Documentation Set /v

Oct 18, 2008
339
2
Hello -- I have tcc in my startup folder, so when I power up my computer, tcc starts --

I noticed that when tcc starts up and runs tcstart.* there was a pause in the output of the script
in the tcstart

I have the command

set /v <var>=<value>

in tcstart to set a global value while I am logged in

now I know the the "/v" options writes the info the the registry -- an had some guest that this could be
the bottle neck, so I then added

timer /1 on set /v <var>=<value>
timer /1 off

and depending on which computer I am using it seems that this command is taking anywhere form
10 to 50 seconds -- could this be that at start up other processes are competing for the
registry?

Thanks
 
May 20, 2008
11,547
107
Syracuse, NY, USA
I doubt it's competition for the registry. Windows should be able to handle that well. More likely is that the HKCU hive isn't available yet. And I reckon that's still very, very unlikely. Without access to HKCU, nothing in the StartUp folder would work very well. I have TCC20 run a login script via the StartUp folder. I put such a command in the login script and got this.
Code:
timer set /v foo=bar
Timer 1 on: 17:01:32
Timer 1 off: 17:01:32  Elapsed: 0:00:00.05
 
Oct 18, 2008
339
2
Hello -- thanks for the reply -- I too had the same command syntax and my output was --

Timer 1 off: 20:23:27 Elapsed: 0:00:45.49
Timer 1 off: 20:23:27 Elapsed: 0:00:00.00

I guess its my hardware -- it a tad old (:
 
Aug 3, 2016
376
9
Netherlands
Hello -- thanks for the reply -- I too had the same command syntax and my output was --

Timer 1 off: 20:23:27 Elapsed: 0:00:45.49
Timer 1 off: 20:23:27 Elapsed: 0:00:00.00

I guess its my hardware -- it a tad old (:

That's a bit strange result: there are only timers that are stopping. No "Timer 1 on"


If you replace your commands:
timer /1 on set /v <var>=<value>
timer /1 off


by this:
timer /3 set /v <var>=<value>

What is the result of the elapsed time of Timer 3?
(Using Timer /3 eliminates interference with other possible timer /1 instances you might have running already)


Other things you could test to narrow things down (what timer results do you get in the first 3 cases?):

- Exclude TCC from your startup and start TCC by hand 2 minutes after you logged on.
- Edit the TCC command in your startup and make it <path\to\tcc.exe /i.
(TCC.exe /i will skip loading aliasses, plugins, INI file, etcetera. It is the most minimal TCC )
- Or just rename your TCSTART so that TCC will not find it and can't use it.
- Post your TCSTART here.

P.S. What version of Take Command? What version of Windows?
 
Similar threads
Thread starter Title Forum Replies Date
A Can you set an image file 'tag' with TCC/4NT? Support 2
V Set path permanently from within TCC? Support 3
S Debugger keeps breaking with no break point set. Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
R How to? Set default application in a special folder Support 4
A How to? Set up SMTP password in TCC-RT Support 1
vefatica WAD More SET /A woes Support 4
vefatica SET /A and multidimensional array. Support 1
M How to set Path variable for non-executable file extensions in 4DOS Support 8
D Need to set Take Command font size when switching to high DPI display Support 0
P "Set" command behavior - a bug? Support 3
M How to? Set the ribbon titles to mixed case Support 1
X How to set %_INIREAD result to variable Support 5
M WAD Set statements in () causes problems Support 8
M How to? How to set a default TITLE for newly opened tab? Support 2
M Fixed Set "VAR=VAL" format causes problems Support 12
vefatica SET /A var=expression=digits Support 3
cxxl Set encoding for batch file Support 4
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
vefatica SET /A var\=...? Support 10
dcantor Documentation SET /T: missing from heading Support 0
vefatica What's SET /Z? Support 1
R Fixed set /r has stopped working in build 35 Support 4
BeechComer Debugger: how to set %1 variable? Support 3
fpefpe How to? Global variable set /v Support 4
fpefpe Documentation Can the title line of tcmd be set? Support 4
J How to set working directory Support 10
Jay Sage Failure of ACTIVATE to Set a Window Position Support 3
rps Fixed Win "set /p" not working in V17 build 53 Support 3
vefatica SET /A "var%=N", TCC vs. CMD Support 0
J Set environment variable from stdout of command Support 3
B How to? Pre-set _tcfolder on startup when Folders is set Auto-Hide Support 6
Dan Glynhampton Fixed @version "force" flag not working, and unable to set separator Support 3
R WAD /= size ranges not set correctly Support 5
S How to? Set the timestamp of ZIP command built archive to match latest member Support 8
Mordachai Help! How to set parameters for script I'm debugging?! Support 6
Roedy SET= Support 2
A How to? Set up a log file for all command output Support 3
M Fixed character set in dir/copy Support 3
Phileosophos Fixed TakeCommand exits upon "set [" command Support 14
R How to set comspec to point to cmd.exe? Support 5
S WAD SET problem - array element initialization Support 11
C Wildcard expansion in FOR set Support 27
vefatica SET question Support 16
T Set 1% then Echo 1% Support 9
S SET /A question; HELP nits Support 8
noahcoad copy /w to FTP does not set time stamp Support 1
M A request for a new feature for the "set" command... Support 5
cgunhouse Accessing variables set using SET /U or SET /S Support 3
D Force For to treat set of values as text, not files Support 3

Similar threads