command-prompt

CMD command to check connected USB devices

和自甴很熟 提交于 2020-01-12 22:24:08
问题 its my first question on stackoverflow so I'm sorry if I don't do that properly. Coming to my question, I would like to obtain, by a command prompt, a list of all USB devices connected to my computer (O.S. Windows 10). I've googled to find such a command, but all results seems useless to me or worse workless. Does anybody know how can I do that? Thank you 回答1: you can download USBview and get all the information you need. Along with the list of devices it will also show you the configuration

CMD command to check connected USB devices

走远了吗. 提交于 2020-01-12 22:22:21
问题 its my first question on stackoverflow so I'm sorry if I don't do that properly. Coming to my question, I would like to obtain, by a command prompt, a list of all USB devices connected to my computer (O.S. Windows 10). I've googled to find such a command, but all results seems useless to me or worse workless. Does anybody know how can I do that? Thank you 回答1: you can download USBview and get all the information you need. Along with the list of devices it will also show you the configuration

VB Script to Delete specific subfolder

耗尽温柔 提交于 2020-01-11 13:43:51
问题 I am in need of VBScript / command-prompt to delete subfolder which will have specific name For Eg.: E:\test\43\5512686\5512698\html\abc E:\test\43\5467686\5512699\html\abc E:\test\43\5587686\55147589\html\abc E:\test\45\5517586\5512698\html\abc etc., wherein above example "abc" folder needs to delete Can anybody help on this Thanks in advance 回答1: For background/context see this skeleton for recursive file access. Given this folder structure: tree /A ..\test Folder PATH listing for volume eh

VB Script to Delete specific subfolder

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-11 13:43:25
问题 I am in need of VBScript / command-prompt to delete subfolder which will have specific name For Eg.: E:\test\43\5512686\5512698\html\abc E:\test\43\5467686\5512699\html\abc E:\test\43\5587686\55147589\html\abc E:\test\45\5517586\5512698\html\abc etc., wherein above example "abc" folder needs to delete Can anybody help on this Thanks in advance 回答1: For background/context see this skeleton for recursive file access. Given this folder structure: tree /A ..\test Folder PATH listing for volume eh

How can i maximize a specific window through cmd?(windows)

走远了吗. 提交于 2020-01-11 02:16:53
问题 I just wanna make a simple notepad .bat file that would maximize a specific process window. Is that possible? 回答1: Start takes an argument to do that. START /MAX notepad.exe However, if it an already running instance, it is outside cmd 's control. 回答2: If you want to maximize already running program/window you can try with windowMode.bat using its title (or a string that the title starts with) @echo off call windowMode -title "Notepad" -mode maximized or with its process id: @echo off call

Restore default working dir if bat file is terminated abruptly

。_饼干妹妹 提交于 2020-01-09 07:55:06
问题 I have a scenario where during execution of a batch file, it navigates to a different folder (say to "../asdf"); and at the end of execution it will set the current working dir as the same folder from where the user called the .bat file. But if the user terminates the batch processing before it is complete, the cmd show the current working dir (say "../asdf"). But in my case, I need to restore the working dir to the default/predefined one. Is it possible? Batch file is written by me, so I can

Best way to detect key combination in windows using built in scripting languages

泄露秘密 提交于 2020-01-07 08:54:49
问题 I was thinking of a scenario to detect a key combination [preferably window key + a] using the built in scripting languages like vb script, powershell script, batch script etc.. is there any way to do this ? 回答1: I personally love AutoHotKey you create a script and it will detect any key combination. It is fast and easy to use and I have dozens of key combinations that I have scripted and use every day. If you must use a built-in scripting language, then the easiest is to create the desired

Best way to detect key combination in windows using built in scripting languages

大城市里の小女人 提交于 2020-01-07 08:53:34
问题 I was thinking of a scenario to detect a key combination [preferably window key + a] using the built in scripting languages like vb script, powershell script, batch script etc.. is there any way to do this ? 回答1: I personally love AutoHotKey you create a script and it will detect any key combination. It is fast and easy to use and I have dozens of key combinations that I have scripted and use every day. If you must use a built-in scripting language, then the easiest is to create the desired

How to correctly execute the cd command from inside of Node.js?

北城以北 提交于 2020-01-07 08:13:40
问题 I'm developing a very simple Electron app for Windows which, when executed from the command prompt, opens a dialog box trough which the user can select a folder. The app would then change the command prompt directory to the directory selected by the user. My end goal is to be able to simply type dirnav , select a folder from the dialog box and have the app take care of redirecting the command prompt to the selected directory (instead of typing cd C:\Users\myName\whateverDirectory . Here's

for /f is not working in .bat file but it works with command prompt in windows 2003

99封情书 提交于 2020-01-07 03:12:49
问题 for /f "tokens=1-7 delims=,: " %a in ('query user ^| find /i "disc"') do logoff %b This above code is used for logoff remote desktop users where state is "Disconnected" in windows 2003.It will work perfect when I run in command prompt. But it will not run when I made a .bat file or .cmd file in windows 2003.so may know where i am going wrong? 回答1: Inside batch files the percent signs used in the for replaceable parameters need to be escaped for /f "tokens=1-7 delims=,: " %%a in ('query user ^