Microsoft计划不使用env PATH的脚本 [英] Microsoft schedule not working with script with env PATH

查看:82
本文介绍了Microsoft计划不使用env PATH的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过时间表清除目录,但我有一个问题:如果我的目标路径不难 - 它将无法工作。

I need clear directory via schedule, but I have a promblem: if path to my direcotry not hard - it will not work.

示例:这种方式错误


#Script path

推荐答案

请不要发布彩色代码。

Please DO NOT post colorized code.

使用编辑工具栏上提供的代码发布工具发布代码。

Post code using the code posting tool provided on the edit tool bar.

不要将代码分开写入两个。线 单个语句应该在一行上,除非您了解PowerShell的工作原理。

Do not write code split across two lines.  Single statements should be on one line except when you understand how PowerShell works.

请在提出更多问题之前修复原始帖子。

Please fix your original post before you ask any more questions.


这篇关于Microsoft计划不使用env PATH的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆