Clicky

How do I ge tit so that powershell 2 runs the following command:
c:\skunk\recon.vbs /FromDate=$Dayminus7 /ToDate=$Dayminus6

I've already got the format stored correctly in the variable so that it will work. I just cant seem to find how to get PS to run a command with variables in it.

asked 12/15/2011 05:27

bachopper's gravatar image

bachopper ♦♦


2 Answers:
If you are are trying to execute this command from within Powershell this should work:
1:
PS > . C:skunk
econ.vbs $DateMinus7 $DayMinus6
link

answered

wls3's gravatar image

wls3

And we have lift off!!! Thanks very much wls3
link

answered 2011-12-15 at 13:40:43

bachopper's gravatar image

bachopper

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×1
×7

Asked: 12/15/2011 05:27

Seen: 178 times

Last updated: 12/15/2011 06:04