Category "cmd"

npm ERR! Missing script, but the script is there when I run "npm run"?

I am trying to run a .bat file that simply echoes 'hello', to learn more about package.json and scripts. I have this: "scripts": { "buildSwaggerFiles": "buil

Run new instance of CMD in PowerShell without a long string of text

So i was wondering if there was a way to remove all of the "&" when you're running an instance of cmd with arguments through PowerShell For example: start-p

How does one close stdin from the windows CMD prompt?

I know that one can close stdin when executing a command from a Linux CLI using logic such as: 0<&- <command> This simulates/emulates running an a

Authentication using Windows cmd and Cypher Shell for Neo4j

When I connect to Cypher Shell using cmd, I type this: bin\cypher-shell -u neo4j Immediately after, I'm prompted for a password. I enter the password and connec

How to deactivate a conda environment before the batch file exits when closing a jupyter lab instance?

I have a batch file that I use to run my jupyter lab. file.bat call <anaconda_dir>\Scripts\activate.bat rasa_ai_conda jupyter lab conda deactivate call co

powershell script to select directory

I would like to create a powershell function or cmdlet that would allow me to quickly navigate to files and function like the example below. Could someone enlig

Delete long name and long path file using cmd del

I would like to create a simple script to delete tmp files. However, not all files are deleted, those with the long name show an error. There are two errors: Th

Is it possible to write to Command Prompt with python?

Im opening Command Prompt with os.startfile('C:\\WINDOWS\\system32\\cmd.exe') and after opening the program id like to write the python file for it to run C:\U

How do I echo a greater than sign in Cmd?

How do I echo the "greater than" character in cmd? I would like to escape the "greater than" sign (>) because I need it to echo to another .bat file. Echo ne

Command prompt not opening in windows 10

I am trying to open the command prompt but if I open it just opens for a second then gets closed. I also use the command prompt for vscode and I am not able to

On Python, How to open multiple command windows simultaneously (in cascade)

I intend to monitor connectivity (by ping ) 3 devices into the net. So far I tried the follow scripts but in some, the commands run in a single windows import

Using ssh to login to linux terminal from windows and run command in a logged in shell

First of all, this may seem like a duplicate question but I have searched stack overflow/various other forum sites and still haven't managed to find a solution.

Notification in CURL command

i am running one curl command to generate token. This command i am running on commandline. Is there any way to have notification (in email or like prompt or pop

how to return result in cmd if you use adb to send a broadcast

I have a BroadcastReceiver like this: class PlatformAccountReceiver: BroadcastReceiver(), CoroutineScope by MainScope() { override fun onReceive(co

Tensorflow is partially imported

When I run a script and import Tensorflow from cmd or Visual Studio Code it throws me the error but when I run it from Anaconda prompt or Spyder it works well.

Delete old entries of the event-log with PowerShell or CMD? (Not all of them | With period of time condition)

Please take a look at these two threads : how-to-clear-eventlog-with-powershell-or-wevtutil delete-old-entries-of-the-event-log-with-powershell Some days ago so

Windows10 connect network folder and find files with keyword in path

Newbie in windows command. I am trying to connect network folder in windows10 and find the most recent files(created in says past one day) with path includes sp

Read a value out of a "complicated" JSON file [closed]

I'm using jq, but I didn't manage to get a value extracted from a .json-file (I got generated by mediainfo) in my batch-script. How can I get

Why does cmd DIR search include files that start with the 3 searched letters but then differ?

If in a directory I have two files, test.pro and test.properties, and I run dir /s *.pro to find all files with the .pro extension, it lists both files. However

How to exit telnet session via command line using azure devops

I am trying to test connectivity from source to a FTP server on port 22 using azure devops commandline tool in pipelines Command for testing: telnet TestSFTP02