so, im trying to get this command to run in cmd-powershell.
comman being
get-psdrive | Where Free*
currently I can get to the powershell inside cmd using this
echo
title PC INFO SCRIPT
:prompt
color 1f
cls
echo PC INFO SCRIPT
echo.
cd\
cd\
powershell
but I have no idea how to make it run my command - get-psdrive | Where Free*
would appreciate a hand, thanks
making a bat file, rookie needing help
Moderator: DosItHelp
Re: making a bat file, rookie needing help
This is the basic syntax for using Powershell in a batch file.
Code: Select all
powershell -command "get-psdrive"