nmap 获取端口信息脚本_期刊脚本获取最新信息

nmap 获取端口信息脚本

When working in a large software development team, whether you have many developers working on the same projects, or your project is linked to other projects; it is very important that developers regularly perform "get latest" to ensure that the changes applied by their team mates are included in their workspace.

在大型软件开发团队中工作时,无论您有多个开发人员在同一个项目上工作,还是您的项目已链接到其他项目; 开发人员定期执行“获取最新信息”以确保其队友所进行的更改包含在工作区中,这一点非常重要。

Although Team Foundation Server 2008 & Visual studio 2008 offer a feature to get latest on checkout, sometimes in larger development teams, there is a need to always ensure the workspaces are most updated all the time.

尽管Team Foundation Server 2008和Visual Studio 2008提供了最新的签出功能,但有时在大型开发团队中,仍需要始终确保工作区始终处于最新状态。

The below solution helped achieve this within our team, since you can not always rely on the developers' memory / discipline to perform get latest manually.

下面的解决方案在我们的团队中帮助实现了这一目标,因为您不能总是依靠开发人员的记忆/纪律来手动执行最新操作。

-Create a new text document with the below text

-使用以下文本创建一个新的文本文档

@echo off

@回声关闭

CD D:\Development_applications

CD D:\ Development_application s

"%PROGRAMFILES%\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe" get

获得“%PROGRAMFILES%\ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ TF.exe”

Exit

出口



Where D:\development applications is your workspace folder , change it to your actual workspace.

Save the file as GET.bat in the root of your C drive or wherever you wish.

将文件另存为GET.bat,位于C驱动器的根目录中或任意位置。

Open Command Prompt (CMD).

打开命令提示符(CMD)。

Type the below command.

输入以下命令。

Schtasks /Create /SC Onidle /I 5 /TN GET /TR C:\get.bat
Schtasks /创建/ SC Onidle / I 5 / TN GET / TR C:\ get.bat

Enter your Domain account password when prompted into CMD window.

当提示进入CMD窗口时,输入您的域帐户密码。

This will create a scheduled task that runs when the computer is idle for 5 minutes (not in use). This will enforce get latest from Team foundation server source control and ensure your workspace is always updated.

这将创建一个计划任务,该任务在计算机闲置5分钟(未使用)时运行。 这将从Team Foundation Server源代码管理中强制获取最新信息,并确保您的工作区始终处于更新状态。

You can also edit the scheduled task directly from Control Panel > Scheduled tasks later on to schedule it on different times that suit your schedule (at night , on login / log off ,etc..).

您还可以稍后直接从​​“控制面板”>“计划任务”中编辑计划任务,以在适合您计划的不同时间计划它(晚上,登录/注销等)。

Another thing to consider is to regularly update the password in the scheduled task whenever your domain password changes. This is necessary to avoid running this scheduled task with a wrong Password, which may cause your Domain account to get locked out.

要考虑的另一件事是,只要您的域密码更改,就定期更新计划任务中的密码。 为避免使用错误的密码运行此计划的任务,这是必要的,这可能会导致您的域帐户被锁定。

Hope this helps you as much as it helped me .

希望这对您有所帮助。

翻译自: https://www.experts-exchange.com/articles/2892/Script-for-periodical-get-latest.html

nmap 获取端口信息脚本

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值