This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Configuration] | |
UseIniInProgramDir=7 | |
pluginbasedir=%COMMANDER_PATH%\Plugins | |
FirstTime=0 | |
FirstTimeIconLib=0 | |
FirstTimeUnpack=0 | |
FirstTimeZIP=0 | |
ShowHiddenSystem=1 | |
SortDirsByName=0 | |
Aligned extension=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copying entire folders or pulling files in single folder using node modules cpy and copyfiles | |
1. Copy files from anywhere in folder tree to flat folder: | |
copyfiles -f source-folder/**/subfolder/*.ts destination/ts | |
or | |
cpy source-folder/**/subfolder/*.ts destination/ts | |
2. Copy all folder contents. If source and destination are on same level and we want to copy contents from source to destination: | |
copyfiles source/**/* destination/ | |
or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
namespace XorFilesMerger | |
{ | |
static class XorFilesMerger | |
{ | |
/// <summary> | |
/// merge file1 and file2 into file3, where bytes == 0 should be the ones where the files differ | |
/// </summary> | |
/// <param name="file1"></param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@title backing up default vs repo folder | |
@set _git=%userprofile%\source\repos | |
@set _prefix=vs_ | |
@set _pat=%~dp0 | |
@for /f "delims=" %%# in ('powershell get-date -format "{yyyyMMdd}"') do @set _date=%%# | |
@for /f "delims=" %%# in ('powershell get-date -format "{HHmmss}"') do @set _time=%%# | |
@md %_date% | |
@set _pat=%_pat%\%_date% | |
@for /f "tokens=*" %%G in ('dir /b /ad "%_git%"') do git -C "%_git%\%%G" bundle create "%_pat%\%_prefix%%%G-%_date%-%_time%.bundle" --all |