Ian
Administrator
- Joined
- Feb 23, 2002
- Messages
- 19,878
- Reaction score
- 1,509
I hadn't quite appreciated how good Windows PowerShell is... it is amazingly good. When I heard that the command prompt was going to be replaced by it, I was a little sad (nostalgia!), but I've had a good play with PowerShell over the past few days and I've scripted a huge number of things that would never had been possible with Batch files.
For example, I can now patch the forum software with a few clicks thanks to a PowerShell script. It will download the patch, unzip it, ask for credentials, FTP it to the server, log in to the web-interface and process the upgrade. This used to take me a while to do manually, but it's under 10 seconds now that it's automated .
PowerShell makes it easy to open up a "select file" dialog box and assign it to a variable, or to parse a CSV/XML file. A huge number of functions are built in.
If you use batch scripting, please do take a look at PowerShell in a bit more detail, as it's a lot better than I expected.
For example, I can now patch the forum software with a few clicks thanks to a PowerShell script. It will download the patch, unzip it, ask for credentials, FTP it to the server, log in to the web-interface and process the upgrade. This used to take me a while to do manually, but it's under 10 seconds now that it's automated .
PowerShell makes it easy to open up a "select file" dialog box and assign it to a variable, or to parse a CSV/XML file. A huge number of functions are built in.
If you use batch scripting, please do take a look at PowerShell in a bit more detail, as it's a lot better than I expected.