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
::Acronis Backups bereinigen. Neuestes behalten, meta-Folder löschen. | |
Set DatSich=F: | |
cd %DatSich%\ && %DatSich% | |
for /f %%i in ('dir /b /o-D /a-d /tC "%DatSich%\*.tib"^|more /e +1') do del /f /s /q %%i | |
rd /s /q %DatSich%\meta |
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
$delimiter = ""; | |
$filePath = "C:\test\mytextfile.txt" | |
$BinFile = "C:\test\numbers.txt" | |
[string]$char = Get-Content $filePath | |
$char.ToCharArray() | foreach {([BYTE][CHAR]$_)} | Out-File $BinFile |
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
$delimiter = " "; | |
$filePath = "C:\myHexFile.txt" | |
$ASCIIFile = "C:\newFile.txt" | |
$HEX = Get-Content $filePath | |
$HEX.Split($delimiter) | FOREACH {WRITE-HOST –object ( [BYTE][CHAR]([CONVERT]::toint16($_,16))) –nonewline >> Out-File $ASCIIFile} |
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
var strQuery = encodeURIComponent('select * from yahoo.finance.historicaldata where symbol = "GOOG"'); | |
var url = 'http://query.yahooapis.com/v1/public/yql?q=' + strQuery + '&format=JSON&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback='; | |
var data = ''; //Will hold JSON String | |
var request = http.get(url, function(res) { | |
console.log("HTTP Response Status" + res.statusCode); | |
res.on("data", function(chunk) { | |
if(res.statusCode == 200){ | |
console.log('Adding Data to buffer...'); | |
data += chunk; | |
} else { |
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
#!/bin/bash | |
USERFILE=/Pfad/Datei.csv | |
OLDIFS=$IFS | |
IFS=, | |
[ ! -f $INPUT ] && { echo "Datei $USERFILE nicht vorhanden."; exit 99; } | |
while read name passwort | |
do | |
adduser name --shell /bin/bash | |
echo passwort | passwd uname --stdin |
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
Set-DistributionGroup | |
-MaxReceiveSize Unlimited | |
-MaxSendSize Unlimited | |
Set-DynamicDistribution Group | |
-MaxReceiveSize Unlimited | |
-MaxSendSize Unlimited | |
Set-Mailbox | |
-MaxReceiveSize Unlimited |
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
' The following code sample demonstrates how to prevent Windows from shutting down | |
' by intercepting Windows Messages, read WM_QUERYENDSESSION and return WM_CANCELMODE | |
Public Class Form1 | |
Private Const WM_QUERYENDSESSION As System.Int32 = &H11 | |
Private Const WM_CANCELMODE As System.Int32 = &H1F | |
Dim MyMsg As New Message | |
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
Module Module1 | |
Dim a, b As Long | |
Declare Sub Beep Lib "kernel32.dll" (ByVal tone As Integer, ByVal dauer As Integer) | |
Public Function Rand(ByVal Low As Long, _ | |
ByVal High As Long) As Long | |
Rand = Int((High - Low + 1) * Rnd()) + Low | |
End Function | |
Sub Main() | |
Console.Write( _ |
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 | |
:Dieses Script pingt alle Hosts in einem IP-Bereich an und listet antwortende Hosts auf. | |
if exist ips.txt del ips.txt > nul | |
echo Bitte geben Sie den ersten Teil der IP ein (z.B. 192.168.0): | |
set /p ip= | |
for /L %%N IN (1, 1, 254) DO ( | |
echo %ip%.%%N wird nun angepingt |
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 | |
:test | |
wmic path win32_battery get batterystatus | find "2" | |
if %ERRORLEVEL% neq 0 ( | |
echo Kein AC! Warte auf Strom | |
goto :while | |
) | |
goto :run |
OlderNewer