batch-file

How to open a URL with cmd?

我的梦境 提交于 2020-12-04 20:00:04
问题 I already know that to open a webpage with the default browser you use: start www.google.com . However, I'm trying to open a URL that contains a '&' in it for example: https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world If I use: start https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world It will not work cause there is a & 回答1: & is a special caractere in batch so if the URL contains a special caractere you just have to do it like

How to open a URL with cmd?

我只是一个虾纸丫 提交于 2020-12-04 19:57:25
问题 I already know that to open a webpage with the default browser you use: start www.google.com . However, I'm trying to open a URL that contains a '&' in it for example: https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world If I use: start https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world It will not work cause there is a & 回答1: & is a special caractere in batch so if the URL contains a special caractere you just have to do it like

after converting batch file to exe Windows Defender shows the file as trojan why? [closed]

限于喜欢 提交于 2020-12-03 18:07:39
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Improve this question i wrote a batch script to delete shortcut virus from a usb drive and to display the hidden folder and files. @ECHO OFF TITLE SHORTCUT VIRUS REMOVER ECHO SHORTCUT VIRUS TEMPORARY REMOVER ECHO THIS TOOL IS MADE BY BHARGAB(MAXYSPARK) SET /P DRIVE=ENTER THE DRIVE

after converting batch file to exe Windows Defender shows the file as trojan why? [closed]

蓝咒 提交于 2020-12-03 18:07:22
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Improve this question i wrote a batch script to delete shortcut virus from a usb drive and to display the hidden folder and files. @ECHO OFF TITLE SHORTCUT VIRUS REMOVER ECHO SHORTCUT VIRUS TEMPORARY REMOVER ECHO THIS TOOL IS MADE BY BHARGAB(MAXYSPARK) SET /P DRIVE=ENTER THE DRIVE

Add new directory in PATH user variable with Setx don't work

时光总嘲笑我的痴心妄想 提交于 2020-11-29 23:51:00
问题 In a .bat script, I want to add a specific list of directory in PATH user variable. Initially, path is like this : C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Novell\iPrint;C:\Program Files\WindowsPowerShell\Scripts\HP.ClientScriptLibrary;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\dotnet\;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\Docker\Docker\resources\bin;C:

Add new directory in PATH user variable with Setx don't work

霸气de小男生 提交于 2020-11-29 23:47:03
问题 In a .bat script, I want to add a specific list of directory in PATH user variable. Initially, path is like this : C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Novell\iPrint;C:\Program Files\WindowsPowerShell\Scripts\HP.ClientScriptLibrary;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\dotnet\;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\Docker\Docker\resources\bin;C:

Windows batch: Can't echo ASCII art with ._|_

僤鯓⒐⒋嵵緔 提交于 2020-11-28 01:52:23
问题 I made ASCII art and I'm trying to have it shown when a .bat file is open. This is the (overwhelmingly basic) code I have. I've checked online and can't really find anything that could help me. Any suggestions? @echo off echo __ __ _______ _____ _____ __ __ echo / /_/ / / ___ / / _ / / _ / / /_/ / echo / __ / / /__/ / / ____/ / ___/ \ / echo /_/ /_/ /_/ /_/ /_/ /_/ /__/ echo _____ _____ _______ __ __ echo / _ / ____ / _ / / ___ / / /_/ / echo / _ / /___/ / _/ / / /__/ / \ / echo /____/ /_____

Windows batch: Can't echo ASCII art with ._|_

倾然丶 夕夏残阳落幕 提交于 2020-11-28 01:51:37
问题 I made ASCII art and I'm trying to have it shown when a .bat file is open. This is the (overwhelmingly basic) code I have. I've checked online and can't really find anything that could help me. Any suggestions? @echo off echo __ __ _______ _____ _____ __ __ echo / /_/ / / ___ / / _ / / _ / / /_/ / echo / __ / / /__/ / / ____/ / ___/ \ / echo /_/ /_/ /_/ /_/ /_/ /_/ /__/ echo _____ _____ _______ __ __ echo / _ / ____ / _ / / ___ / / /_/ / echo / _ / /___/ / _/ / / /__/ / \ / echo /____/ /_____

creating a .bat file with npm install command

懵懂的女人 提交于 2020-11-25 06:15:48
问题 I created the following file //npminstall.bat npm install echo hello When I run the following command from Windows 10 Command Line (dos) npminstall.bat , the npm install command fires, but the echo hello doesn't fire. I tried putting a semi-color after the first line like this npm install; , but all that did was give me the help instructions of npm . How do I get the second line echo hello to fire after the npm install ? Additional Notes I have found that this also causes the same behaviour:

creating a .bat file with npm install command

北城余情 提交于 2020-11-25 06:10:39
问题 I created the following file //npminstall.bat npm install echo hello When I run the following command from Windows 10 Command Line (dos) npminstall.bat , the npm install command fires, but the echo hello doesn't fire. I tried putting a semi-color after the first line like this npm install; , but all that did was give me the help instructions of npm . How do I get the second line echo hello to fire after the npm install ? Additional Notes I have found that this also causes the same behaviour: