Win Bat 批处理带货切片


有的小伙伴需要把我之前一个视频切片的批处理文件变成windows可用的bat文件。文件名字qiepian.bat,代码如下:

```

@echo off


:: Define variable

set SOME_VAR=C:\cygwin\path


:: Remove directory if it exists

if exist "%SOME_VAR%" (

    rd /s /q "%SOME_VAR%"

) else (

    echo "file not found"

)


:: Copy a file

copy /y "C:\some\file" "C:\to\another\file"


:: Check if variable is empty

if "%SOME_VAR%"=="" (

    echo "SOME_VAR is empty"

) else (

    echo "SOME_VAR not empty"

)


:: Define a function

call :my_function

call :my_function "some param"

goto :eof


:my_function

echo hello from my_function: %~1

goto :eof

```

运行也简单,这样就好: qiepian.bat 

Comments

爽文共赏/Popular Posts

【Xai, Be Nice】Grok's Secret Menu 6 Hacks to Master the AI | Grok隐藏玩法 6招驯服AI巨兽

5分钟拿下原生IP + 免费节点 手残变大佬 | From Noob to Pro in 5 Minutes: 10 Real IPs + Daily Fresh Free Nodes

免费节点无限续?OneBox+subs-check,付费党沉默了 | Free Nodes Never Die? OneBox + subs-check, Paid Users Left Speechless

一口气搭好!Cloudflare融合Railway与Galaxy打造纯净原生免费VPS | Build a Pure Free VPS with Cloudflare + Railway + Galaxy in One Go

3 Steps to AI Video Fame✨WebSocket+Copilot Auto-Update, Newbies Win Too | 3 步 AI 视频封神✨WebSocket+Copilot 自动更,小白也能卷赢

Your Home’s Silent Guardian—DDNS Rocks Stability - 家里的“智能管家”!DDNS让你稳如泰山🏠✨