(This is a copy of a post I made two days ago in Eileen’s Lounge, which redirected me here) I am using PowerShell version 5, I believe (attached image). I continue to wade through online documentation.
I cannot go on asking for help with automating my beloved BATch files and SUBST commands.
So I will grit my teeth, those few that are left, and have a shot at using Powershell in Windows 10.
I have set myself a few objectives in the general area of “Automating the [Re]Boot Process”
(1) Start Notepad
(2) Open a Text File with Notepad
(3) Decrypt an Encrypted Data Partition
(4) Create a Daily “Blotter Folder” as Drive B:
(5) Execute a Dos Batch File
These five types of task are aimed at
(a) Weaning me away from an AutoExec.bat
(b) Making me familiar with basic aspects of Powershell
(c) Making me familiar with basic aspects of Group Policy Editor
(d) Building a simple guide for folks like me
Question: Do these objectives seem reasonable?
There is not much that I do in my auto-boot DOS-CMD sequence apart from these basic skills.
Every man and his dog has Notepad.exe, which is why I chose it as a specific example of “opening an existing file”, and I have a great deal invested in batch files (loading MSWord2003, opening specific VBA application programs, purging temporary files, initiating RoboCopy backups etc.
I reason that once I have some basic benchmarks (I still think of them as job-decks!) in place, I can use those benchmarks to extend my skills and gradually translate my old DOS-CMD batch files into Powershell scripts.
Thanks
Chris
Unless you're in a hurry, just wait.