Cmd Command for set %variable%

Discussion in 'Scripting' started by orvillesnorkel, Jul 18, 2025 at 12:49.

  1. orvillesnorkel

    orvillesnorkel MDL Novice

    Jan 7, 2014
    22
    3
    0
    #1 orvillesnorkel, Jul 18, 2025 at 12:49
    Last edited by a moderator: Jul 18, 2025 at 18:44
    i have kb5043080.msu, and kb5064489.msu
    in the same folder.
    And i would like, my script to automatic, set kb5064489.msu as a variable
    i can use ,all the way through my script.

    Is it possible, to set the path, to the location of, kb5064489.msu, as a variable.
    using forfiles
    perhaps set @Parth instead of echo @path.

    forfiles /P C:\LCU /S /C "cmd /c if @fsize gtr 533761741 echo @path" (something like set @path=%variable%


    or is there, a better command option ??