[Solved] Install font batch file and vbscript

Finally I found the solution, special thank to JosefZ, as he said Powershell is the solution, All you need is download and copy Add-font.ps1 by Michael Murgolo to your project folder and copy below lines into your batch file: @echo off PowerShell Set-ExecutionPolicy RemoteSigned PowerShell -command “& ‘%~dp0Add-Font.ps1’ -path ‘%~dp0myFont.ttf'” Note you must run this … Read more

[Solved] Calculate folder size for multiple folders [closed]

You could try this. Use: Get-FileSize “C:\folder1″,”C:\folder2″,”C:\folder3\folder1” Output: Name Value —- —– Total 1456.00 C:\folder1 100.00 C:\folder2 123.00 C:\folder3\folder1 1233.00 Doesn’t throw in MB because of the calculations that SUM does… Function Get-FileSize([string[]]$Array) { $Output = @{} Foreach($String in $Array){ $FolderInfo = Get-ChildItem -Recurse $String $totalSize = “{0:N2}” -f (($FolderInfo | Measure-Object -Property Length -Sum … Read more

[Solved] Needed Batch command for moving file other than *.bat all others to the different folder [closed]

pushd “c:\folder_with_bat_files” for /f “tokens=* delims=” %%a in (‘dir /b /a:-d^| findstr /i /e /v “bat”‘) do ( move /y “%%~fa” “c:\some_dir” ) use findstr command to filter the redults of dir command. 4 solved Needed Batch command for moving file other than *.bat all others to the different folder [closed]

[Solved] How can I find the source code for a website using only cmd?

You could use the Microsoft.XMLHTTP COM object in Windows Scripting Host (VBScript or JScript). Here’s a hybrid Batch + JScript example (should be saved with a .bat extension): @if (@CodeSection == @Batch) @then @echo off & setlocal set “url=https://www.faa.gov/air_traffic/flight_info/aeronav/digital_products/vfr/” cscript /nologo /e:JScript “%~f0” “%url%” goto :EOF @end // end Batch / begin JScript var xhr … Read more

[Solved] how to get a pc list that have a service running on each pc?

If all computers have powershell installed with remoting enabled, you can try the script below. It also outputs computers that were not reachable so you can retest them later if you want to. If you don’t need it, just remove the content inside the catch-block(or all of try/catch): $out = @() Get-Content “pclist.txt” | foreach … Read more

[Solved] How to create folders and files from text file with same names to insert with corresponding name?

It doesn’t make any sense to generate text files and then folders to move the files to. Create the folders first place and create the files into the folders. Using a (code block) only one for loop is needed. @echo off setlocal for /f “tokens=*” %%a in (comps.txt) do ( if not exist “%%a” mkdir … Read more

[Solved] SETLOCAL ENABLEDELAYEDEXPANSION , Interrupt SETLOCAL ENABLEDELAYEDEXPANSION, SETLOCAL ENABLEDELAYEDEXPANSION

You may solve your problem this way: set bang=! SETLOCAL ENABLEDELAYEDEXPANSION Echo hi! 7z e -o”C:\test” -i!bang!*.jar “C:\*.zip” Just be sure that the set bang=! command is executed when delayed expansion is disabled. 1 solved SETLOCAL ENABLEDELAYEDEXPANSION , Interrupt SETLOCAL ENABLEDELAYEDEXPANSION, SETLOCAL ENABLEDELAYEDEXPANSION