PowerShell Scripting - The Basics  

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 15,491
    Windows10
       #20

    Kari said:
    Your comment is like asking why math textbook for grade 5 does not mention Riemannian geometry.
    I once started to read a book "A Beginners Guide to Chaos Theory". The first sentence read "Consider an n-dimensional object in Hilbert Space". I never got as far as the second sentence - LOL.
      My Computer


  2. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #21

    cereberus said:
    I once started to read a book "A Beginners Guide to Chaos Theory". The first sentence read "Consider an n-dimensional object in Hilbert Space". I never got as far as the second sentence - LOL.
    That sentence in the book was a definite beginners killer, assumes familiarity with the subject or was a poor attemp to get the readers attention. Makes absolutely no sense to start a book for beginners with those words.
      My Computers


  3. Posts : 15
    Windows 10 Pro Build 19042
       #22

    Hello, what would be the best way to run this as a stand alone script (and not always runs when you open PowerShell). So that when you run the .ps1 file it stays open and displays the output? Thank you.
      My Computer


  4. Posts : 7,607
    Windows 10 Home 20H2
       #23

    Call PowerShell -ExecutionPolicy ByPass -file "D:\Folder_name\File_name.ps1"
      My Computer


  5. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #24

    To all members, no one in particular..... please refrain from posting in all bold bright colors, like all bold red. It is not as easy to read, particularly if more than one sentence. Also, may not render well or at all in certain TF themes. I believe John has mentioned this in the past. Thanks.
      My Computers


  6. Posts : 7,607
    Windows 10 Home 20H2
       #25

    I used red and boldface because it was a line of commands. I always do so when posting commands.
      My Computer


  7. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #26

    Matthew Wai said:
    I used red and boldface because it was a line of commands. I always do so when posting commands.
    You are correct, you do. Please reread my post.
      My Computers


  8. Posts : 7,607
    Windows 10 Home 20H2
       #27

    f14tomcat said:
    It is not as easy to read, particularly if more than one sentence.
    I suppose you are referring to sentences. A command is not a sentence. The former is intended to be run, while the latter, to be read. I intend a command to be copied, pasted, and run, not to be read.

    Also, it is easy to read at my end. Assuming red does not look good at your end, can you suggest a different colour?
      My Computer


  9. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #28

    Mathew, it was a simple request. If you feel it is not possible, then do not do it.
      My Computers


  10. Posts : 7,607
    Windows 10 Home 20H2
       #29

    If both a sentence and a command are in black, they look the same. I want a command to be distinct from a sentence. What else can be done except using boldface and a different colour?
      My Computer


 

Tutorial Categories

PowerShell Scripting - The Basics Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:11.
Find Us




Windows 10 Forums