Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取当前脚本的名称?
例如,如果我运行myscript.sc,我想知道myscript I need this 的值,用于杀死脚本的先前实例,仍在运行。
myscript.sc
myscript
sourcecode.File()将返回当前脚本的名称
sourcecode.File()