Categories:

Email
  🠪  Servers
  🠪  Testing

Hardware
  🠪  3D Printing
  🠪  Apple
  🠪  Batteries
  🠪  Drives
  🠪  Edgerouter
  🠪  Electronics
  🠪  Modems
  🠪  Phone
  🠪  Printers
  🠪  Raspberry Pi
  🠪  Virtualization

Links
  🠪  Interesting
  🠪  Media

Network
  🠪  Data
  🠪  Testing
  🠪  VPN

Scripts
  🠪  Batch
  🠪  Powershell

Servers
  🠪  Databases
  🠪  Misc
  🠪  Website

Software
  🠪  Other

Utilities
  🠪  Backup
  🠪  Fix Issues
  🠪  Recovery

Video
  🠪  Editing

Websites
  🠪  HTML
  🠪  Testing

Windows
  🠪  Adjustments
  🠪  Issues
  🠪  Remote Desktop
  🠪  Sercurity
  🠪  Slow
  🠪  Software
  🠪  Startup

Everything

Submit Entry
Airin's Notes

Category: Scripts 🠪 Batch
Convert media file using ffmpeg
January 23, 2021

Put the following in a batch file. You will need to download ffmpeg and place it in some path.
https://ffmpeg.org/download.html


--------------- Start --------------
@echo off
set ffmpeg="C:\Tools\Utils\ffmpeg-win-2.2.2\ffmpeg.exe"
set infolder=C:\Temp\In-WAV
set outfolder=C:\Temp\Out-MP3
set infiletype=wav
set outfiletype=mp3

echo Starting!
echo Input folder: %infolder%
echo Output folder: %outfolder%
echo Input filetype: %infiletype%
echo Output filetype: %outfiletype%
echo.

cd /d "%infolder%"
if not exist "%outfolder%\." md "%outfolder%"
dir
echo Starting!
for %%f in (%infolder%\*.%infiletype%) do (
if exist "%outfolder%\%%~nf.%outfiletype%" echo Skipping '%%~nf.%infiletype%' since '%outfolder%\%%~nf.%outfiletype%' exists.

if not exist "%outfolder%\%%~nf.%outfiletype%" (
echo.
echo.
echo -------------------- Starting '%%f'
echo Converting '%%f' to '%outfolder%\%%~nf.%outfiletype%'
%ffmpeg% -i "%%f" "%outfolder%\%%~nf.%outfiletype%"
)
)

echo.
echo.
echo All Finished!
echo.
timeout 10
----------------- End -----------------


Category: Scripts 🠪 Batch
Tips
January 21, 2021

rem Set the date in the format "2020-10-24" to the variable %Today%
FOR %%A IN (%Date%) DO (
FOR /F "tokens=1-3 delims=/-" %%B in ("%%~A") DO (
SET Today=%%D-%%B-%%C
)
)
echo Date to use for filenames: '%Today%'


Category: Scripts 🠪 Batch
Upload file via FTP
January 23, 2021

Put the FTP command script in a .txt file, then make a shortcut or batch file containing:
ftp.exe -s:C:\Temp\testftp.txt

Below is the script to put in a text file:
---------------------- Start ----------------------
open ftp.server.com
theusername
thepassword
binary
prompt
cd "ftp.server.com"
lcd "C:\Temp\Uploads"
put 1.mp3
bye
--------------------- End -----------------------


Category: Scripts 🠪 Batch
VSS - Volume Shadow Copies
January 26, 2021
Mount shadow volumes on disk images
https://forensicswiki.xyz/wiki/index.php?title=Mount_shadow_volumes_on_disk_images

diskpart
select vdisk file=C:\myimage.vhd
attach vdisk readonly

vssadmin list shadows
vssadmin list shadows /for=E:\
vssadmin list
mklink /D C:\shadow_volume_1 \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy7\


Configure VSS on Windows Server
https://helpcenter.itopia.com/en/articles/724296-configuring-volume-shadow-copies-vss-on-windows-server

Configure ...<Too long, click to read the rest>




This site is meant to be used as a reference for myself, although others may find it useful. I use it to keep track of certain fixes, software, and other solutions which I may need while assisting customers. The page layout is pure HTML/CSS and is kept simple to optimize loading time and fast results.

Return to Airin's Computers