Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Depending on setup, you can make functions external files, or internal in the script.

External CMD Func:

set %1=WIN10

Call Func:

set myvar=
echo %myvar%
call C:\tmp\test.cmd myvar
echo %myvar%

Inside Script Example:

@echo off

set myvar=
echo %myvar%
call :myfunction myvar
echo %myvar%

set %1=filled
  • No labels