return $MessageWithDate
в function Write-Log process
$a = (B -message "World" -Verbose 4>&1 | Write-Log -LogFilePath "c:\temp\test.log" ) ; $a
[Function B] - Start
Initial parameters:
- message = 'World'
- Verbose = 'True'
Hello, World
[Function B] - End
3/30/2019 12:37:35 PM [Function B] - Start
3/30/2019 12:37:35 PM Initial parameters:
3/30/2019 12:37:35 PM - message = 'World'
3/30/2019 12:37:35 PM - Verbose = 'True'
3/30/2019 12:37:35 PM Hello, World
3/30/2019 12:37:35 PM [Function B] - End
pushd HKLM:
cd System\Classes
[Microsoft.Win32.RegistryKey]$x = get-childitem | where-object { $_.name -match '\*' }
set foldername=%%a
md %Src%\%foldername%
set foldername=%%a
md %Src%\!foldername!
SETLOCAL ENABLEDELAYEDEXPANSION
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
sed -i 's| *| |g'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
... другие настройки
config.vm.boot_timeout = 600
src/main/resources/application.properties:spring.datasource.url = jdbc:sqlite:${USERPROFILE}\\sqlite\\database_name.db
String.format("%s/src/main/resources/%s",
System.getProperty("user.dir"), resourceFileName);