Ask a questionAsk a question
 

Answer-f parameter?

  • Wednesday, August 26, 2009 4:09 PMc0pe Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    I saw something like the following in some code samples:

    "some literal string info {0}" -f wmiObject.property

    I can tell by the context of this what -f generally is (I'm guessing it's 'format'), but I could not think of what to supply to 'help' within powershell to get more info on it? anyone know?



Answers

  • Wednesday, August 26, 2009 5:13 PMMike Pfeiffer Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Yep, that is the -f format operator.

    help about_operators

    another good read regarding -f operator:
    http://bsonposh.com/archives/229
    • Marked As Answer byc0pe Wednesday, August 26, 2009 6:06 PM
    •  

All Replies