代码改变世界

通过脚本升级PowerShell

2021-09-18 09:05 by jetwill, 101 阅读, 0 推荐, 收藏, 编辑
摘要:Update Powershell through command line https://superuser.com/questions/1287032/update-powershell-through-command-line Run this command : iex "& { $(ir 阅读全文

How to run a batch file each time the computer loads Windows

2021-09-11 10:48 by jetwill, 38 阅读, 0 推荐, 收藏, 编辑
摘要:https://www.computerhope.com/issues/ch000322.htm#:~:text=Press%20Start%2C%20type%20Run%2C%20and%20press%20Enter.%20In,folder.%20Create%20a%20shortcut% 阅读全文

go.mod file not found in current directory or any parent directory; see 'go help modules'

2021-09-07 08:08 by jetwill, 1814 阅读, 0 推荐, 收藏, 编辑
摘要:go的环境设置问题,执行 go env -w GO111MODULE=auto 我的环境:Windows 7, Go 1.17 D:\Apps\GOPATH\src\code.oldboyedu.com\studygo>cd day01 D:\Apps\GOPATH\src\code.oldboye 阅读全文

xshell 所选的用户密钥未在远程主机上注册;无法加载密钥

2021-09-05 10:17 by jetwill, 5875 阅读, 0 推荐, 收藏, 编辑
摘要:他山之石 https://zhuanlan.zhihu.com/p/92528287 安全起见,服务器最近的安全策略准备进行更改,逐渐由原来的密码登录更换为密钥登录认证。 于是今天把服务器上的id_rsa导入到了xshell的【用户密钥】里面,在更改登录方式后,很欢快的点击【连接】,然而死活登不上服 阅读全文

win10右键添加在此处打开powershell

2021-08-25 17:21 by jetwill, 150 阅读, 0 推荐, 收藏, 编辑
摘要:https://www.cnblogs.com/simuhunluo/p/8057029.html 你想要的效果可能就是这个吧?但是找了好久没有找到方法?哈哈,大家都一样,实际上,不需要修改任何东西, 解锁新知识: 在文件夹空白处,按住Shift同时鼠标右击,发现没??发现没!!!! 补充2019- 阅读全文

怎样从 bat 批处理文件调用 PowerShell 脚本

2021-08-24 17:13 by jetwill, 1676 阅读, 0 推荐, 收藏, 编辑
摘要:https://stackoverflow.com/questions/19335004/how-to-run-a-powershell-script-from-a-batch-file https://stackoverflow.com/questions/36135753/invalid-pat 阅读全文

powershell操作excel

2021-08-20 09:03 by jetwill, 1776 阅读, 0 推荐, 收藏, 编辑
摘要:https://blog.csdn.net/u010288731/article/details/83120205 如何创建一个Excel 应用程序对象? $xl = new-object -comobject excel.application 默认创建的Excel 应用程序对象是在后台的,它默认 阅读全文

不用find,怎样递归地给目录设置700,给文件设置600权限?

2021-08-18 09:36 by jetwill, 111 阅读, 0 推荐, 收藏, 编辑
摘要:https://stackoverflow.com/questions/36553701/how-to-set-permissions-recursively-700-for-folders-and-600-for-files-without-u I'm trying to figure out a 阅读全文

Windows Batch 编程 和 Powershell 编程

2021-07-29 10:05 by jetwill, 101 阅读, 0 推荐, 收藏, 编辑
摘要:Batch Script - Functions with Return Values https://www.tutorialspoint.com/batch_script/batch_script_functions_with_return_values.htm How can I check 阅读全文

LC 只出现一次的数字

2021-07-23 08:26 by jetwill, 60 阅读, 0 推荐, 收藏, 编辑
摘要:Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linea 阅读全文
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页