OShell.CurrentDirectory = CreateObject(“Scripting.FileSystemObject”).GetParentFolderName(WScript. That is all there is to using VBScript to run a Windows PowerShell script. But when I go to the c:\test folder, I see that all the files are fixed. Here is the newly appearing Windows PowerShell console. ‘Change the working directory from the system32 folder back to the script’s folder. When I run the script, a Windows PowerShell console appears, but it does not look like it really did anything. ‘Launch the script again as administratorĬreateObject(“Shell.Application”).ShellExecute “wscript.exe”, “”””
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |