Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to assign a value to a variable in batch script using powershell

@echo OFF
for /f %%a in ('powershell -file script.ps1') do set "pass=%%~a"
echo %pass%
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu display sources.list 
Shell :: bash measure execution time 
Shell :: how to create an alias in bash 
Shell :: install docker on ubuntu 
Shell :: bash run while loop 
Shell :: instal rust lang on linux 
Shell :: adb install aab 
Shell :: sleep until time bash 
Shell :: replace main with another branch 
Shell :: how to exclude .ide directory in gitignore 
Shell :: echo exit code 
Shell :: To set up the apt repository for stable nginx packages, run the following command: 
Shell :: scp 
Shell :: the --plain command does not exist 
Shell :: powershell copy all images in a directory 
Shell :: composer install delete from parameters.yml symfony 3 
Shell :: install react router 
Php :: tinker color auto 
Php :: echo pre print_r 
Php :: disable laravel debugbar 
Php :: laravel migrate only 1 file 
Php :: how to get page name in php 
Php :: php hide notice 
Php :: automatic years php 
Php :: create model in laravel command line 
Php :: laravel show routes artisan 
Php :: php function to remove underscore 
Php :: specified key was too long; max key length is 767 bytes (s 
Php :: php replace space with 20 
Php :: php array remove empty values 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =