-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README_EN.txt
2033 lines (1488 loc) · 73.7 KB
/
README_EN.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
* README_EN.txt
* 2024.06.17
* tacklebar
1. DESCRIPTION
2. LICENSE
3. REPOSITORIES
4. CATALOG CONTENT DESCRIPTION
5. DISTRIBUTION
6. PREREQUISITES
7. DEPENDENCIES
8. EXTERNALS
9. IMPLEMENTATION DETAILS
10. PROJECT CONFIGURATION VARIABLES
11. INSTALLATION
11.1. Windows XP support
12. CONFIGURATION STORAGE FILES
13. DESCRIPTION ON SCRIPTS USAGE
14. SCRIPTS USAGE
14.1. Open a notepad window independently to selected files.
14.1.1. Method #1. Open a new notepad window to save edit file to current
working directory.
14.1.2. Method #2. Open a new notepad window to save edit file to current panel
directory.
14.2. Open standalone notepad window for selected files.
14.3. Open selected files in existing Notepad++ window.
14.4. Open Administator console window in current directory.
14.4.1. Method #1. By left mouse button, Total Commander bitness is
independent.
14.4.2. Method #2. By left mouse button, Total Commander bitness is dependent.
14.4.3. Method #3. By right mouse button, using `As Administrator`.
14.4.4. Method #4. By left mouse button.
14.4.5. Method #5. By call to cmda.bat script and type an Administrator
password after.
14.5. Edit SVN properties.
14.5.1. Method #1. By path list through the TortoiseSVN GUI.
14.5.2. Method #2. By path list from command line through the TortoiseSVN GUI.
14.5.3. Method #3. By path list over notepad with tabs only for existing
properties.
14.5.4. Method #4. By path list over notepad with tabs for selected by user
properties including not yet existed.
14.6. Open SVN Log for selected files and directories together.
14.6.1. Method #1. By path list through the TortoiseSVN GUI from working
copies.
14.6.2. Method #2. By path list through the TortoiseSVN GUI from remmote urls.
14.7. Open TortoiseSVN status dialog from set of WC directories (always opens
to show unversioned changes).
14.7.1. Method #1. One window for all WC directories with or without versioned
changes (by default if no `-window-per-*`/`-all-in-one flags`).
14.7.2. Method #2. Window per unique repository root with or without versioned
changes in respective WC directory.
14.7.3. Method #3. Window per command line WC directory with or without
versioned changes.
14.7.4. Method #4. Window per WC root directory with or without versioned
changes.
14.8. Open TortoiseSVN commit dialogs for a set of WC directories (opens only
if has not empty versioned changes).
14.8.1. Method #1. Window per unique repository root with versioned changes in
respective WC directory (by default if no `-window-per-*`/`-all-in-one`
flags).
14.8.2. Method #2. One window for all WC directories with versioned changes.
14.8.3. Method #3. Window per command line WC directory with versioned changes.
14.8.4. Method #4. Window per WC root directory with versioned changes.
14.9 Compare current directories of 2 panels.
14.10 Comapre selected paths to path list from a saveload slot.
14.11. Compare selected paths from current panel (odd-vs-even).
14.11.1. Method #1. By path list.
14.11.2. Method #2. By path list from command line.
14.12. Compare selected paths from current panel (odd-vs-even, sort file
lines).
14.12.1. Method #1. By path list.
14.12.2. Method #2. By path list from command line.
14.13. Shell/SVN/GIT files batch move.
14.13.1. Method #1. Move files by path list.
14.14. Shell/SVN/GIT files batch rename.
14.14.1. Method #1. Rename files by path list.
14.15. Shell/SVN/GIT files batch copy.
14.15.1. Method #1. Copy files by path list.
14.16. Shell file to files copy by path list.
14.16.1. Method #1. Shell file to files copy by path list.
14.17. Batch create directories in directories.
14.17.1. Method #1. Create directories in current directory.
14.17.2. Method #2. Create directories in selected directories.
14.18. Batch create empty files in directories.
14.18.1. Method #1. Create empty files in current directory.
14.18.2. Method #2. Create empty files in selected directories.
14.19. Batch create directories by path list.
14.19.1. Method #1. Create directories by path list.
14.20. Batch create empty files by path list.
14.20.1. Method #1. Create empty files by path list.
14.21. Concatenate video files.
14.22. Read/Save/Edit/Load/Select path list to/in/from/by a saveload slot.
14.22.1. Read file selection list to a saveload slot list.
14.22.2. Save file selection list to a saveload slot list.
14.22.3. Edit a saveload slot list.
14.22.4. Load search from a saveload slot list.
14.22.5. Load panel from a saveload slot list.
14.22.6. Select panel files from a saveload slot list.
14.23. Clear drive cache.
15. KNOWN ISSUES
15.1. Error message:
`Windows Script Host is disabled: "HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings\Enabled" = 0x0`
OR
`Windows Script Host is disabled: "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings\Enabled" = 0x0`
OR
Error message dialog: `Windows Script Host access is disabled on this machine, Contact your administrator for details`
15.2. A Visual Basic script error message:
`Microsoft VBScript runtime error: This script contains malicious content and has been blocked by your antivirus software.: 'ExecuteGlobal'`
OR
A Visual Basic script hangs on execution.
15.3. A script prints error message `the script process is not properly
elevated up to Administrator privileges.`
15.4. A script shows an error dialog with the title and message:
`Notepad++.exe - Entry Point Not Found`,
`The procedure entry point GetLogicalProcessorInformation could not be located in the dynamic link library KERNEL32.dll`
15.5. A script shows GUI error dialog with the title and message:
`notepad++.exe - Entry Point Not Found`,
`The procedure entry point SHCreateItemFromParsingName count not be located in the dynamic link library SHELL32.dll.`
15.6. A script shows an error dialog with the title and message:
`Notepad++.exe - Unable To Locate Component`,
`This application has failed to start because python27.dll was not found. Re-installing the application may fix this problem.`
15.7. Cygwin/Msys console input stalls with the error message:
`tee: 'standard output': Permission denied`.
15.8. Parent `cmd.exe` console window does not hide after the open of the
ConEmu console window GUI.
15.9. Parent `cmd.exe` console window does not close after the close of the
ConEmu console window GUI.
15.10. Parent `cmd.exe` console process closes upon the open of the ConEmu
console window GUI and ConEmu console window opens with wrong `cmd.exe`
bitness instance.
OR
ConEmu console window prints multiple error messages:
`The process tried to write to a nonexistent pipe.` when runs 2 or more
console instances.
15.11. A script print error message
`/usr/bin/bash: line 0: cd: ...: No such file or directory`
15.12. A script shows GUI error dialog `Windows Script Host`:
`Script: ...\call.vbs Line: ... Column: ... Error: Invalid procedure call or argument Code: 800A0005 Source: Microsoft VBScript runtime error`
15.13. ffmpeg prints multiple error messages while concatenating video files:
`non-existing PPS 0 referenced`, `decode_slice_header error`
15.14. Error message dialog:
`File not found!`
`em_tkl_... ...`
`The system cannot find the file specified.`
15. AUTHOR
-------------------------------------------------------------------------------
1. DESCRIPTION
-------------------------------------------------------------------------------
Collection of scripts to compare, convert, copy, move, rename, create, edit,
select, operate and etc using file or directory path lists.
Designed as Total Commander plugin for 10.51+.
Sources contains Total Commander button bars and 32x32 icon files.
See the `_config/config.system.vars.in` for minimum version dependencies.
-------------------------------------------------------------------------------
2. LICENSE
-------------------------------------------------------------------------------
The MIT license (see included text file "license.txt" or
https://en.wikipedia.org/wiki/MIT_License)
-------------------------------------------------------------------------------
3. REPOSITORIES
-------------------------------------------------------------------------------
Primary:
* https://github.com/andry81/tacklebar/branches
https://github.com/andry81/tacklebar.git
First mirror:
* https://sf.net/p/tacklebar/tacklebar/ci/master/tree
https://git.code.sf.net/p/tacklebar/tacklebar
Second mirror:
* https://gitlab.com/andry81/tacklebar/-/branches
https://gitlab.com/andry81/tacklebar.git
-------------------------------------------------------------------------------
4. CATALOG CONTENT DESCRIPTION
-------------------------------------------------------------------------------
<root>
|
+- /`.log`
| #
| # Default directory with script log files.
|
+- /`__init__`
| #
| # Project root directory initialization scripts.
|
+- /`_config`
| #
| # Directory with build configuration files.
|
+- /`_externals`
| #
| # 3dparty project sources and files.
|
+- /`_out`
| #
| # Temporary directory of generated output from `*.in` files.
|
+- /`deploy`
| #
| # Deploy files like button bar files, fonts and etc.
|
+- /`res`
| #
| # Resource files like 32x32 icons for a toolbar buttons.
|
+- /`src`
| #
| # Source files like scripts and local configuration files.
|
+- /`_install.bat`
| #
| # Main installation script.
|
+- /`_install-fonts.bat`
#
# Optional terminal fonts installation script.
-------------------------------------------------------------------------------
5. DISTRIBUTION
-------------------------------------------------------------------------------
See details in the `DISTRIBUTION` section of the `README_EN.txt` file from the
`tacklebar--external_tools` project.
-------------------------------------------------------------------------------
6. PREREQUISITES
-------------------------------------------------------------------------------
Currently used these set of OS platforms and applications to run
with or from:
1. OS platforms:
* Windows XP x86 SP3/x64 SP2
* Windows 7+
2. Applications:
* MinTTY
https://mintty.github.io
https://github.com/mintty/mintty
- Mintty is a terminal emulator for Cygwin, MSYS or Msys2, and derived
projects, and for WSL.
* ConEmu 201124+
https://github.com/Maximus5/ConEmu
- Freeware Windows console emulator with tabs, which represents multiple
consoles as one customizable GUI window with various features.
* Notepad++ 7.6+
https://notepad-plus-plus.org
- Freeware GUI application with various plugins to view/edit text files.
* Notepad++ PythonScript plugin
https://github.com/bruderstein/PythonScript
- Freeware Notepad++ python plugin to run python scripts in the Notepad++.
* Winmerge
https://winmerge.org
- Freeware GUI application to compare/merge text files.
* Araxis Merge
https://www.araxis.com
- Shareware GUI/console application to compare/merge text files.
* ffmpeg
https://ffmpeg.org/download.html#build-windows
https://github.com/BtbN/FFmpeg-Builds/releases,
https://github.com/Reino17/ffmpeg-windows-build-helpers
https://rwijnsma.home.xs4all.nl/files/ffmpeg/?C=M;O=D
- Freeware console application to convert/process video files.
* msys2
https://www.msys2.org/#installation
- Freeware Unix-like environment for the Windows.
* cygwin
https://cygwin.com
- Freeware Unix-like environment for the Windows.
* TortoiseSVN 1.8+
https://tortoisesvn.net
- Freeware GUI/console application to maintain Subversion version control
system.
* Git 2.24+
https://git-scm.com
- Freeware console application to maintain GIT version control system.
* GitExtensions
https://github.com/gitextensions/gitextensions
- Freeware GUI application to maintain GIT version control system.
NOTE:
Exact versions see in the configuration file from `_config` directory.
-------------------------------------------------------------------------------
7. DEPENDENCIES
-------------------------------------------------------------------------------
Any project which is dependent on this project have has to contain the
`README_EN.deps.txt` description file for the common dependencies in the
Windows and in the Linux like platforms (see `PRECONFIGURE` section).
-------------------------------------------------------------------------------
8. EXTERNALS
-------------------------------------------------------------------------------
See details in `README_EN.txt` in `externals` project:
https://github.com/andry81/externals
-------------------------------------------------------------------------------
9. IMPLEMENTATION DETAILS
-------------------------------------------------------------------------------
List of issues discovered in Windows XP/7:
1. Run from shortcut file (`.lnk`) in the Windows XP (but not in the Windows 7)
brings truncated command line down to ~260 characters.
2. Run from shortcut file (`.lnk`) loads console windows parameters (font,
windows size, buffer size, etc) from the shortcut at first and from the
registry (HKCU\Console) at second. If try to change and save parameters,
then saves ONLY into the shortcut, which brings the shortcut file overwrite.
3. Run under UAC promotion in the Windows 7+ blocks environment inheritance,
blocks stdout redirection into a pipe from non-elevated process into
elevated one and blocks console screen buffer change (piping locks process
(stdout) screen buffer sizes).
To bypass that, for example, need to:
a. Save environment variables to a file from non-elevated process and load
them back in an elevated process.
b. Use redirection only from an elevated process.
c. Change console screen buffer sizes before stdout redirection into a
pipe.
4. Windows antivirus software in some cases reports a `.vbs` script as not safe
or requests an explicit action on each `.vbs` script execution.
To resolve all the issues we DO NOT USE shortcut files (`.lnk`) or Visual Basic
scripts (`.vbs`) for UAC promotion.
The latest implementation does use instead as a replacement the `callf.exe`
utility.
NOTE:
An old implementation still may use winshell_call.vbs` + `call.vbs` scripts.
PROs:
1. Implementation is the same and portable between all the Windows versions
like Windows XP/7/8/10. No need to use different implementations for each
Windows version.
2. No need to change console windows parameters (font, windows sizes, buffer
sizes, etc) each time the project is installed. The parameters loads/saves
from/to the registry and so is shared between installations.
3. Process inheritance tree is retained between non-elevated process and
elevated process because parent non-elevated process (`callf.exe`) awaits
child elevated process.
4. A single console can be shared between non-elevated and elevated
processes.
5. A single log file can be shared between non-elevated and elevated
processes.
6. The `/pause-on-exit*` flags of the `callf.exe` does not block execution
on detached console versus the `pause` command of the `cmd.exe`
interpreter which does block.
CONs:
1. The `callf.exe` still can not redirect stdin/stdout of a child `cmd.exe`
process without losing the auto completion feature (in case of interactive
input - `cmd.exe /k`).
-------------------------------------------------------------------------------
10. PROJECT CONFIGURATION VARIABLES
-------------------------------------------------------------------------------
1. `_config/config.system.vars.in` or
`_out/config/tacklebar/config.system.vars`
System variables.
2. `_config/config.0.vars.in` or
`_out/config/tacklebar/config.0.vars`
User variables.
* USE_MINTTY
Enables use of mintty in all scripts by default.
* MINTTY32_ROOT
* MINTTY64_ROOT
Directory path where the Mintty is installed.
* USE_CONEMU
Enables use of conemu in all scripts by default.
* CONEMU_INTERACT_MODE
CONEMU_ROOT
CONEMU_CMD32_CMDLINE_ATTACH_PREFIX
CONEMU_CMD64_CMDLINE_ATTACH_PREFIX
CONEMU_CMD32_CMDLINE_RUN_PREFIX
CONEMU_CMD64_CMDLINE_RUN_PREFIX
The ConEmu related variables.
* NPP_EDITOR
File path to the Notepad++ editor executable.
* BASIC_TEXT_EDITOR
File path to the Windows compatible notepad editor executable to fall back
to.
* MSYS32_ROOT
* MSYS64_ROOT
Directory path where the Msys is installed.
* CYGWIN32_ROOT
* CYGWIN64_ROOT
Directory path where the Cygwin is installed.
* ARAXIS_MERGE_ROOT
Directory path where the Araxis Merge is installed.
* ARAXIS_COMPARE_ENABLE
Use Araxis compare tool to compare files and directories.
* ARAXIS_COMPARE_TOOL
* ARAXIS_CONSOLE_COMPARE_TOOL
* ARAXIS_CONSOLE_COMPARE_TOOL_FLAGS
Araxis compare tool executable and default command line flags.
* WINMERGE_ROOT
Directory path where the Winmerge is installed.
* WINMERGE_COMPARE_TOOL
* WINMERGE_COMPARE_TOOL_FLAGS
Winmerge compare tool executable and default command line flags.
* GIT_SHELL_ROOT
Directory path with the POSIX subdirectories (/bin) where the Bash shell is
installed. The GitForWindows, Cygwin or Msys can be used.
* GITEXTENSIONS_ROOT
Directory path where the GitExtensions is installed.
* FFMPEG_TOOL_EXE
File path to the ffmpeg console utility executable.
-------------------------------------------------------------------------------
11. INSTALLATION
-------------------------------------------------------------------------------
1. To install into a directory without a GUI do run the `_install.bat` with
optional first argument - path to the installation root:
>
mkdir c:\totalcmd\scripts
_install.bat c:\totalcmd\scripts
If the first argument is not defined and `COMMANDER_SCRIPTS_ROOT` variable
is not set then, the GUI directory selection dialog would appear.
The `COMMANDER_SCRIPTS_ROOT` environment variable would be created to store
the installation path and the `tacklebar` subdirectory would contain all
the script files and configuration files.
NOTE:
You can call `_install.bat` without the destination path argument in case
if it has been already called at least once. In that case it would use
the destination path from the already registered `COMMANDER_SCRIPTS_ROOT`
variable.
NOTE:
The latest implementation does suggest the
`%COMMANDER_PATH%\plugins\UTIL` path as a default installation root.
This exists to potentially avoid a write protection on the Total
Commander directory (`/W` flag for the installer, see for details
https://www.ghisler.com/history.txt) and keep the Total Commander root
directory clean.
2. At the end of the installation script execution does edit the
`_out/config/tacklebar/config.0.vars` file for correct values.
CAUTION:
In case if the installation already has been called at least once and
configuration values between a previous installation and the new one are
different then, at the end of the installation you will be asked to
merge values (using a merge application) from the `config.0.vars` file
of the previous installation directory into the `config.0.vars` file of
new installation directory (basically a new installation directory has
the same location as previous one).
3. Optionally install fonts from the `deploy/fonts` directory by run the
`_install-fonts.bat` script.
NOTE:
In the Windows XP the `_install.bat` and `_install-fonts.bat` scripts has a
builtin UAC promotion which works when the option
`Protect my computer and data from unauthorized program activity` in the
`Run As` dialog is deselected!
-------------------------------------------------------------------------------
11.1. Windows XP support
-------------------------------------------------------------------------------
For the Windows XP the initial codepage in the `config.system.vars`
configuration file is taken from the registry on the moment of the
installation. You can change it:
(DOS codepage)
>
mkdir c:\totalcmd\scripts
_install.bat -chcp 866 c:\totalcmd\scripts
>
_install-fonts.bat -chcp 866
-------------------------------------------------------------------------------
12. CONFIGURATION STORAGE FILES
-------------------------------------------------------------------------------
All scripts below would work only if all configuration files would store
correct configuration variables. These configuration files are:
* `_out/config/tacklebar/config.system.vars`
* `_out/config/tacklebar/config.0.vars`
-------------------------------------------------------------------------------
13. DESCRIPTION ON SCRIPTS USAGE
-------------------------------------------------------------------------------
All scripts can be called with the
`%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Utilities\bin\contools\callf.exe`
utility assistance:
Usage:
>
callf.exe [/?] [<Flags>] [//] <ApplicationNameFormatString>
[<CommandLineFormatString> [<Arg1> [<Arg2> ... [<ArgN>]]]]
>
callf.exe [/?] [<Flags>] /shell-exec <Verb> [//] <FilePathFormatString>
[<ParametersFormatString> [<Arg1> [<Arg2> ... [<ArgN>]]]]
Run utility `callf.exe /?` to print full help.
CAUTION:
You should escape each backslash (`\`) character on the end of each command
line argument of an executable (an internal Windows shell issue).
Example:
1. >
callf.exe ... "<path-with-trailing-backslash-character>\"
2. >
callf.exe ... "<path-with-or-without-trailing-backslash-character>\."
This will prevent from an argument trailing quote accident escaping.
CAUTION:
If the `/no-window` flag of the `callf.exe` utility is used then, you must
not use the `-pause_on_exit` flag in the command line to a down layer script,
otherwise a script process would pause on exit and because a console window
is not visible then, you won't be able to interact with it and close it!
In that case you can use instead `/pause-on-exit*` flags of the `callf.exe`
utility which does not block execution on detached console.
Old implementation scripts can be called with the `call.vbs` script assistance:
USAGE:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Scripts\Tools\ToolAdaptors\vbs\call.vbs"
<command-line>
See the `call.vbs` file header for full help.
-------------------------------------------------------------------------------
14. SCRIPTS USAGE
-------------------------------------------------------------------------------
Here and after all the scripts is used in conjuction with the Total Commander
buttons bar environment. For example, variables like `%P` and `%WL` does
substitute by the Total Commander button bar menu command.
To read about the Total Commander button bar use the builtin help:
press F1 and search for the `button bar` keywords.
-------------------------------------------------------------------------------
14.1. Open a notepad window independently to selected files.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
14.1.1. Method #1. Open a new notepad window to save edit file to current
working directory.
-------------------------------------------------------------------------------
For Notepad++:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_new_session.bat"
-wait -npp -multiInst -nosession
For Windows Notepad:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_new_session.bat"
-wait
-------------------------------------------------------------------------------
14.1.2. Method #2. Open a new notepad window to save edit file to current panel
directory.
-------------------------------------------------------------------------------
For Notepad++:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_new_session.bat"
-wait -npp -multiInst -nosession "%P\."
For Windows Notepad:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_new_session.bat"
-wait "%P\."
-------------------------------------------------------------------------------
14.2. Open standalone notepad window for selected files.
-------------------------------------------------------------------------------
For Notepad++, ANSI only files (limited by command line length):
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_edit_files.bat"
-wait -npp -nosession -multiInst "%P\." %S
For Notepad++, ANSI only files (not limited by command line length):
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_edit_files_by_list.bat"
-npp -nosession -multiInst "%P\." %L
For Notepad++, any files (utf-16le, not limited by command line length, but
slower):
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_edit_files_by_list.bat"
-npp -paths_to_u16cp -nosession -multiInst "%P\." %WL
For Notepad++, any files (utf-16le, not limited by command line length,
has no noticeable slowdown, but the `Python Script` plugin must be installed
together with the `startup.py` script from the `contools--notepadplusplus`
project:
https://github.com/andry81/contools--notepadplusplus)
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_edit_files_by_list.bat"
-npp -use_npp_extra_cmdline -nosession -multiInst "%P\." %WL
For Windows Notepad:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_edit_files.bat"
-wait "%P\." %S
-------------------------------------------------------------------------------
14.3. Open selected files in existing Notepad++ window.
-------------------------------------------------------------------------------
ANSI only files (limited by command line length):
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_edit_files.bat"
-wait -npp "%P\." %S
ANSI only files (not limited by command line length):
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_edit_files_by_list.bat"
-wait -npp "%P\." %L
Any files (utf-16le, not limited by command line length, but slower):
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\notepad\notepad_edit_files_by_list.bat"
-wait -npp -paths_to_u16cp "%P\." %WL
-------------------------------------------------------------------------------
14.4. Open Administator console window in current directory.
-------------------------------------------------------------------------------
CAUTION:
1. The `Sysnative/cmd.exe` can not be run under the Administrator user.
2. The `Sysnative` directory visible ONLY from 64-bit applications.
3. The `Sysnative` directory doesn't exist on the Windows XP x64 and lower.
For above reasons we should create another directory additionally to the
`sysnative` one which is:
1. Visible from any application bitness mode and the Windows version.
2. No specific privilege rights restriction by the system and `cmd.exe`
executable from there can be run under administrator user w/o any additional
manipulations.
-------------------------------------------------------------------------------
14.4.1. Method #1. By left mouse button, Total Commander bitness is
independent.
-------------------------------------------------------------------------------
NOTE:
May be in some cases it won't work, for example, command
`pip install pip --upgrade` in the Python 3.5 in the Windows 7 x86
responds as "access denided".
But may be the error is an error of Python, the internet advises to run
command as: "python -m pip install --upgrade"
In the Windows x64 open 64-bit console window as Administrator user and type:
>
mklink /D "%SystemRoot%\System64" "%SystemRoot%\System32"
This will create the directory link to 64-bit `cmd.exe` available from any
bitness process.
For 64-bit `cmd.exe` button under any mode in the Administrative mode:
>
%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Scripts\Tools\ToolAdaptors\lnk\cmd_system64_admin.lnk
/K cd /d "%P\."&call title %%COMSPEC%%: %%CD%%
For 32-bit `cmd.exe` button under any mode in the Administrative mode:
>
%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Scripts\Tools\ToolAdaptors\lnk\cmd_wow64_admin.lnk
/K cd /d "%P\."&call title %%COMSPEC%%: %%CD%%
For 64-bit `cmd.exe` button under any mode in a user mode:
>
%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Scripts\Tools\ToolAdaptors\lnk\cmd_system64.lnk
/K cd /d "%P\."&call title %%COMSPEC%%: %%CD%%
For 32-bit `cmd.exe` button under any mode in a user mode:
>
%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Scripts\Tools\ToolAdaptors\lnk\cmd_wow64.lnk
/K cd /d "%P\."&call title %%COMSPEC%%: %%CD%%
-------------------------------------------------------------------------------
14.4.2. Method #2. By left mouse button, Total Commander bitness is dependent.
-------------------------------------------------------------------------------
NOTE:
1. In the Windows x64 will open `cmd.exe` which bitness will be dependent on
the Total Commander bitness.
2. May be in some cases it won't work, for example, command
`pip install pip --upgrade` in the Python 3.5 in the Windows 7 x86
responds as "access denided".
But may be the error is an error of Python, the internet advises to run
command as: "python -m pip install --upgrade"
>
%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Scripts\Tools\ToolAdaptors\lnk\cmd_admin.lnk
/K cd /d "%P\."&title %COMSPEC%
-------------------------------------------------------------------------------
14.4.3. Method #3. By right mouse button, using `As Administrator`.
-------------------------------------------------------------------------------
>
cmd.exe
/K cd /d "%P\."&title %COMSPEC%
-------------------------------------------------------------------------------
14.4.4. Method #4. By left mouse button.
-------------------------------------------------------------------------------
NOTE:
1. May be in some cases it won't work, for example, command
`pip install pip --upgrade` in the Python 3.5 in the Windows 7 x86
responds as "access denided".
But may be the error is an error of Python, the internet advises to run
command as: "python -m pip install --upgrade"
2. In non english version of the Windows instead of the "Administrator" you
have to use a localized name.
>
runas
/user:Administrator "cmd.exe /K cd /d \"%P\.\"&title User: ^<Administrator^>"
or
>
%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Scripts\Tools\ToolAdaptors\bat\cmd_as_user.bat
Administrator "%P\."
-------------------------------------------------------------------------------
14.4.5. Method #5. By call to cmda.bat script and type an Administrator password after.
-------------------------------------------------------------------------------
NOTE:
the `cmda.user.bat` script by default contains a localized group name of the
`Administrators` which uses to take the first administrator name for the
console if the `cmda.bat` script didn't have that name as first argument.
>
%COMMANDER_SCRIPTS_ROOT%\tacklebar\_externals\contools\Scripts\Tools\ToolAdaptors\bat\cmda.bat
"<Administrator name>"
-------------------------------------------------------------------------------
14.5. Edit SVN properties.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
14.5.1. Method #1. By path list through the TortoiseSVN GUI.
-------------------------------------------------------------------------------
For UTF-16 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_list.bat"
-from_utf16 /command:properties "%P\." %WL
For UTF-8 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_list.bat"
-chcp 65001 /command:properties "%P\." "<utf-8-wo-bom-path-list-file>"
For ANSI path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_list.bat"
/command:properties "%P\." %L
-------------------------------------------------------------------------------
14.5.2. Method #2. By path list from command line through the TortoiseSVN GUI.
-------------------------------------------------------------------------------
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc.bat"
/command:properties "%P\." %S
-------------------------------------------------------------------------------
14.5.3. Method #3. By path list over notepad with tabs only for existing properties.
-------------------------------------------------------------------------------
For UTF-16 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\svn\svn_edit_props_by_list.bat"
-wait -npp -from_utf16 -edit_filter_by_prop_class -window_per_prop_class "%P\." %WL
For UTF-8 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\svn\svn_edit_props_by_list.bat"
-wait -npp -chcp 65001 -edit_filter_by_prop_class -window_per_prop_class "%P\." "<utf-8-wo-bom-path-list-file>"
-------------------------------------------------------------------------------
14.5.4. Method #4. By path list over notepad with tabs for selected by user
properties including not yet existed.
-------------------------------------------------------------------------------
For UTF-16 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\svn\svn_edit_props_by_list.bat"
-wait -npp -from_utf16 -edit_filter_by_prop_class -create_prop_if_empty -window_per_prop_class "%P\." %WL
For UTF-8 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\svn\svn_edit_props_by_list.bat"
-wait -npp -chcp 65001 -edit_filter_by_prop_class -create_prop_if_empty -window_per_prop_class "%P\." "<utf-8-wo-bom-path-list-file>"
-------------------------------------------------------------------------------
14.6. Open SVN Log for selected files and directories together.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
14.6.1. Method #1. By path list through the TortoiseSVN GUI from working
copies.
-------------------------------------------------------------------------------
For UTF-16 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_list.bat"
-from_utf16 /command:log "%P\." %WL
For UTF-8 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_list.bat"
-chcp 65001 /command:log "%P\." "<utf-8-wo-bom-path-list-file>"
-------------------------------------------------------------------------------
14.6.2. Method #2. By path list through the TortoiseSVN GUI from remmote urls.
-------------------------------------------------------------------------------
For UTF-16 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_list.bat"
-from_utf16 -from_url -npp /command:log "%P\." %WL
For UTF-8 path list:
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_list.bat"
-chcp 65001 -from_url -npp /command:log "%P\." "<utf-8-wo-bom-path-list-file>"
-------------------------------------------------------------------------------
14.7. Open TortoiseSVN status dialog from set of WC directories (always opens
to show unversioned changes).
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
14.7.1. Method #1. One window for all WC directories with or without versioned
changes (by default if no `-window-per-*`/`-all-in-one flags`).
-------------------------------------------------------------------------------
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_nested_wc.bat"
-chcp 65001 -wait -all-in-one /command:repostatus "%P\." %S
or
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_nested_wc.bat"
-chcp 65001 -wait /command:repostatus "%P\." %S
-------------------------------------------------------------------------------
14.7.2. Method #2. Window per unique repository root with or without versioned
changes in respective WC directory.
-------------------------------------------------------------------------------
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_nested_wc.bat"
-chcp 65001 -wait -window-per-reporoot /command:repostatus "%P\." %S
-------------------------------------------------------------------------------
14.7.3. Method #3. Window per command line WC directory with or without
versioned changes.
-------------------------------------------------------------------------------
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_nested_wc.bat"
-chcp 65001 -wait -window-per-wcdir /command:repostatus "%P\." %S
-------------------------------------------------------------------------------
14.7.4. Method #4. Window per WC root directory with or without versioned
changes.
-------------------------------------------------------------------------------
>
"%COMMANDER_SCRIPTS_ROOT%\tacklebar\src\scripts\scm\tortoisesvn\tortoiseproc_by_nested_wc.bat"
-chcp 65001 -wait -window-per-wcroot /command:repostatus "%P\." %S
-------------------------------------------------------------------------------
14.8. Open TortoiseSVN commit dialogs for a set of WC directories (opens only
if has not empty versioned changes).
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
14.8.1. Method #1. Window per unique repository root with versioned changes in
respective WC directory (by default if no `-window-per-*`/`-all-in-one`