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
@echo off | |
setlocal enabledelayedexpansion | |
set "source_folder=C:\Users\AxelFC\Music\Recordings" | |
set "ffmpeg_path=C:\ffmpeg\bin\ffmpeg.exe" | |
for /R "%source_folder%" %%A in (*.aac) do ( | |
set "filename=%%~nA" | |
set "file_without_extension=!filename:.aac=!" | |
"%ffmpeg_path%" -i "%%A" "%source_folder%\!file_without_extension!.wav" |
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
param ( | |
# Define a parameter for the folder path | |
[Parameter(Mandatory=$true)] | |
[string]$folderPath | |
) | |
try { | |
# Verify the path exists | |
if (-Not (Test-Path $folderPath)) { | |
Write-Error "The provided path does not exist or is not accessible. Please provide a valid path." |
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
function Get-WifiMacAddress { | |
try { | |
# Get network adapters | |
$adapters = Get-NetAdapter | Where-Object { $_.InterfaceDescription -like '*Wi-Fi*' } | |
if ($adapters.Count -eq 0) { | |
Write-Error "No Wi-Fi adapter found." | |
return $null | |
} |
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
function Get-WifiIPAddress { | |
try { | |
# Get network adapters with Wi-Fi in their description | |
$adapters = Get-NetAdapter | Where-Object { $_.InterfaceDescription -like '*Wi-Fi*' } | |
if ($adapters.Count -eq 0) { | |
Write-Error "No Wi-Fi adapter found." | |
return $null | |
} |
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
function Get-ComputerModelAndManufacturerFolderName { | |
try { | |
$csModel = (Get-ComputerInfo).CsModel | |
$csManufacturer = (Get-ComputerInfo).CsManufacturer | |
$folderName = $csManufacturer + " " + $csModel | |
return $folderName | |
} catch { | |
Write-Error "Failed to retrieve computer model and manufacturer information." | |
} | |
} |
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
function Get-EthernetMacAddress { | |
try { | |
# Get network adapters | |
$adapters = Get-NetAdapter | Where-Object { $_.InterfaceDescription -like '*Ethernet*' } | |
if ($adapters.Count -eq 0) { | |
Write-Error "No Ethernet adapter found." | |
return $null | |
} |
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
function Get-EthernetIPAddress { | |
try { | |
# Get network adapters with Ethernet in their description | |
$adapters = Get-NetAdapter | Where-Object { $_.InterfaceDescription -like '*Ethernet*' } | |
if ($adapters.Count -eq 0) { | |
Write-Error "No Ethernet adapter found." | |
return $null | |
} |
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
function Get-ComputerSerialNumber { | |
try { | |
$SerialNumber = (Get-WmiObject -class win32_bios).SerialNumber | |
return $SerialNumber | |
} catch { | |
Write-Error "Failed to retrieve computer model and manufacturer information." | |
} | |
} | |
Get-ComputerSerialNumber |
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
function Check-DefaultBrowser { | |
$currentBrowserProgId = (Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice').ProgId | |
return -not ($currentBrowserProgId -like "FirefoxURL-*") | |
} | |
function Check-DefaultPDFApplication { | |
$User = New-Object System.Security.Principal.NTAccount($env:UserName) | |
$sid = $User.Translate([System.Security.Principal.SecurityIdentifier]).value | |
$key = "HKU:\${sid}\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice" |
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
> [!NOTE] | |
> Highlights information that users should take into account, even when skimming. | |
> [!TIP] | |
> Optional information to help a user be more successful. | |
> [!IMPORTANT] | |
> Crucial information necessary for users to succeed. | |
> [!WARNING] |
NewerOlder