---
title:
author:
desc:
create:
update:
tags: []
---
This file contains hidden or 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
@ECHO OFF | |
REM support "Umlaute äöü" (Use codepage CP-1252 aka "Windows-1252" aka "Latin 1") | |
CHCP 1252 >nul | |
TITLE Create backup of XXX | |
SET "$PS_EXE=powershell.exe" | |
SET "_SOURCE_FILENAME=xxx.xlsx" | |
SET "_TARGET_BACKUP_FOLDER=X:\abc\def\geh\backup" |
This file contains hidden or 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
fetch("post.php", { | |
method: "post", | |
mode: "cors", | |
headers: { | |
"Content-Type": "application/json" | |
}, | |
body: {data: "data"} | |
}) | |
.then(response => { | |
return response.text(); // returns text that can used as html |
This file contains hidden or 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
REM Update date/timestamp of file in positional argument 1. | |
REM Syntax: `touch.bat <filename>` | |
REM Example: `touch.bat "C:\any path\my file.ext"` | |
@COPY /B %1+,, %1 |
This file contains hidden or 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
/*md | |
- File: filename.ahk; Type: Autohotkey script | |
- AHK Version: 1.0.0 | |
- Author: | |
- Copyright: | |
- Notes: | |
*/ | |
MYVERSION=1.0.0 |
This file contains hidden or 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
:task-add-task <filename>: Adds/appends a task from a file to Taskfile.bat | |
IF "%1"=="add-task0" ( | |
ECHO Missing argument ^<filename^> | |
GOTO :EOF | |
) | |
TYPE "%1" >>%scriptName% | |
ECHO. >>%scriptName% | |
GOTO :EOF |
This file contains hidden or 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
@REM Taskfile.bat example task for opening a project folder with Visual Code | |
:task-projectX: Open ProjectX folder in code | |
ECHO open ProjectX folder | |
SET taskProjectFolder = "C:\Projects\ProjectX\" | |
CALL code %taskProjectFolder% | |
GOTO :EOF |
This file contains hidden or 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
@Taskfile.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 |
This file contains hidden or 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
@curl -so Taskfile.bat https://gist.githubusercontent.com/digitalfun/da780fdb2cc6262febe854e451e13d55/raw/b0214216858a9e68583bf043a7db0611b40f838a/%255BTaskfile-bat%255D%2520Taskfile.template.bat | |
@ECHO Taskfile initialized. | |
@ECHO Usage: Taskfile.bat ^<task^> ^<args^> |
NewerOlder