![]() Using the FileSystemObject to create short names For me, that is too much trouble especially when a method exists from an unlikely source. Of course, if I want to be able to do anything with the output, I need to capture it, parse it, and convert it to an object. The command and the associated output from the command are shown in the following image. Dir, of course, obtains a directory listing, and /x provides for extension information. ![]() The /c parameter tells CMD to run a command and then exit. This is actually a useful technique at times. Therefore, I open Windows PowerShell, and run CMD inside it. And I can run executables inside of Windows PowerShell with no problems. This works because CMD.EXE is simply another application. It is my weird sense of humor, but it does make my inner geek smile. One of my favorite things to do is to run the old-fashioned CMD interpreter that is inside of Windows PowerShell. Note I want to give credit to Microsoft PFE, Chris Wu, who is responsible for much of what is in today’s post by answering a question on our internal Windows PowerShell alias. Yepper! It will be all PowerShell, all day-and that is always a good thing. Then it will be followed with the PowerScripting Podcast. First, we have the Charlotte Windows PowerShell User Group meeting at 6:30 at the Microsoft Office in Charlotte. No, it is not because we are one more day closer to the weekend. WooHoo! Today is Thursday, and the excitement is buzzing around the Scripting House in Charlotte, North Carolina. Microsoft Scripting Guy, Ed Wilson, is here. Please help me-this is a hard stop for my current project. I know they look strange, and I need a systematic way to display the file and folder names without permitting them to stretch on and on. In the old days, I could see short file and folder names in the CMD prompt, but these days when I am using Windows PowerShell I do not find these things. Hey, Scripting Guy! I need to be able to use Windows PowerShell to show short folder and file names. Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to display short file and folder names.
0 Comments
Leave a Reply. |