是否可以从.msg文件中提取收件人电子邮件地址?

时间:2018-04-06 13:24:15

标签: powershell outlook powershell-v4.0

为了从一批.msg文件中编译收件人列表,我试图用PowerShell实现这一点。我可以获取收件人姓名,但不能获取他们的电子邮件。它们的地址条目显示为System._ComObject

对我做错了什么以及如何解决这个问题有任何建议?谢谢。

null

1 个答案:

答案 0 :(得分:1)

感谢Palle Due:https://stackoverflow.com/a/47264921/361842

public class movement : MonoBehaviour {
   public Rigidbody rb;

    public float yForce = 300f; //left/right 
    public float xForce = 600f; //forward/back
    public int rotateSpeed = 25;

    private bool wPressed;
    private bool aPressed;
    private bool sPressed;
    private bool dPressed;

    void Start () {
        wPressed = aPressed = sPressed = dPressed = false;
    }

    private void Update()
    {
        if (Input.GetKey("w"))
        {
            wPressed = true;
        }

        if (Input.GetKey("a"))
        {
            aPressed = true;
        }

        if (Input.GetKey("s"))
        {
            sPressed = true;
        }

        if (Input.GetKey("d"))
        {
            dPressed = true;
        }
    }

    // Update is called once per frame
    void FixedUpdate () {
        //Time.deltaTime evens out the speed to account for frame rate
        if (Input.GetKey("w"))
        {
            rb.AddRelativeForce(-xForce * Time.deltaTime, 0, 0);

            wPressed = false;
        }
        if (Input.GetKey("a"))
        {
            rb.AddRelativeForce(0, 0, -yForce * Time.deltaTime);

            transform.Rotate(-Vector3.up * rotateSpeed * Time.deltaTime);
            aPressed = false;
        }
        if (Input.GetKey("s"))
        {
            rb.AddRelativeForce(xForce * Time.deltaTime, 0, 0);


            sPressed = false;
        }
        if (Input.GetKey("d"))
        {
            rb.AddRelativeForce(0, 0, yForce * Time.deltaTime);

            transform.Rotate(Vector3.up * rotateSpeed * Time.deltaTime);

            dPressed = false;
        }
    }
}

关于特殊财产价值;这里有一个有用的列表:https://stackoverflow.com/a/45296809/361842