This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Thomas Chang wrote:But I use the followings and it works.
It may work in some cases, but it is highly dependent on the value. If the values have no spaces (or other special characters), it can work. If the values have spaces it will break.
If you don't understand why, you should get a book on UNIX Shell Programming, as it will cover how to set environment variables, and why you need to quote them. For now, if you want it to work all the time, you need to do as Peter said. It is the only correct way to do it.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com