- 博客(4)
- 资源 (4)
- 收藏
- 关注
原创 Java注解中 ElementType.PACKAGE 的用法
1、创建自定义注解package com.ruijie.audit.port.adapter.annotation;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;@Target({ElementType.PACKAGE})@
2021-07-20 19:05:53 693
原创 powershell脚本互斥锁设计
Powershell脚本互斥设计 mutex锁 脚本#mutex互斥锁实现脚本Function Locked-Execute([ScriptBlock] $ScriptBlock,[String]$MutexName,[int32]$WaitSeconds){If([String]::IsNullOrEmpty($MutexName)){$MutexName='mutexLock'}If($WaitSeconds){$WaitSeconds=60}$mutex=$false
2021-07-18 17:17:11 233
原创 windows收集安装软件信息
Function Get-InstalledSoftware{ Function Get-KeyValFromReg($Hive,$regPath,$retPro){ $RegHive=[Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$env:COMPUTERNAME) $RegKey=$RegHive.OpenSubKey($regPath) If([string]::IsNullOrEm...
2021-07-07 17:37:17 191
原创 windows下命令行方式配置终端IP
一、注意事项因为IP的自动获取,依赖dhcpServer。若没有部署DHCP,则无法自动获取IP如下提供了2种方式:自动获取IP 和 配置静态IP二、自动获取IP启用DHCP#配置静态ip后,使用ipconfig /release和ipconfig /renew是无效的netsh interface ip set address name="以太网" source=dhcpnetsh interface ip set dns name="以太网" source=dhcp触..
2021-07-07 17:26:04 212
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人