Home > database >  Converting command script to powershell
Converting command script to powershell

Time:09-23

I have this command prompt script that I need to convert to a powershell script, but I am confused with where to even start since I am unfamiliar with powershell. To begin I think I would need to declare the variables in a different way and refer to them differently within the long command.

@echo On
setlocal

set base_dir=D:\Temp\peijun\LoadLegacyDocs
set java_home=D:\Programs\jre6.31
set environment=stg
set result=logs\%environment%\%1.properties

"%java_home%\bin\java" -javaagent:           
  • Related