[英]Is there a way to have a PowerShell be executed automatically within a directory?
I have a situation and am hoping there is an easy way to get around it. 我有一个情况,希望有一个简单的方法来解决它。
I have a folder, and inside this folder, there are 12 other sub-folders. 我有一个文件夹,并且在此文件夹中,还有其他12个子文件夹。 Inside each of these sub-folders, there is PS script and 2 files being compared in the script.
在每个子文件夹中,都有PS脚本和正在比较的2个文件。 The 2 files are called using parameters in the script.
使用脚本中的参数调用这两个文件。
Is there a way to have all of the scripts run automatically? 有没有办法让所有脚本自动运行? I'm assuming it would have to be another script that can then iterate through the subfolders?
我假设它必须是另一个脚本,然后可以遍历子文件夹?
If anymore information is needed or any other suggestions can be made, please let me know! 如果需要更多信息或可以提出任何其他建议,请告诉我! Thanks in advance for any help.
在此先感谢您的帮助。
If I get you correctly, you need to parts of codes: 如果我正确理解了您,则需要输入部分代码:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.