Questions tagged [cmd.exe]

cmd.exe, or the Command Prompt, is the default command-line interpreter for many Microsoft-created operating systems.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Download multiple pdf files by using a command in cmd

I'm looking for a way to download multiple pdf by using a "single" command in cmd (e.g. from here). So far I learned how to download a single file by using: curl URL -o name.pdf EDIT: I'd ...
0
votes
1answer
13 views

Cmd crashes with exit code 1 after uninstalling anaconda

On Win10 Pro, Cmd crashes with exit code 1 after uninstalling and reinstalling anaconda; since then, I've been unable to access Command Prompt. As soon as I open cmd, it closes, and opening within ...
0
votes
2answers
30 views

Command Prompt extract jpg files with full path

I need a batch command to list all files (with extension .Jpg, .Txt) here is one command dir /r /s /b output of command: C:\Users\vb3\Desktop\docs\news.mp4 C:\Users\vb3\Desktop\docs\speech.mp3 C:\...
0
votes
0answers
23 views

Close specific file in Acrobat Reader via the command line

I am working on something questionably useful (because better executions exist) which is a Sublime Text 3 PDFLaTeX build system with preview. I want to open files in Acrobat Reader, and so far all is ...
1
vote
1answer
27 views

Is it possible to Select-String by color?

When I run a command it produces different messages with different colors. I'd like to see only those messages that have a specific color. Is it possible in some way to filter messages by text color? ...
0
votes
2answers
51 views

Problems launching java programs in Windows Command Line after Java Update 281

After updating Java 8 (update 281) yesterday (2021-02-15) I could no longer use the Single-File Launch in the Windows Command Line. Prior to this I had no problems using this feature but now I get the ...
0
votes
0answers
48 views

My old Windows 7 computer seemingly has no command prompt

I'm trying to factory reset my Windows 7 computer so I can use it as a nostalgia machine, but cmd.exe in the %WinDir%\system32 is the Magnifier application (when the computer starts, it opens the ...
1
vote
1answer
30 views

windows, run net stat to txt daily with date/time in filename

first time post. was unable to find similar solutions on this site or others. need a CMD batch file to run "netstat -an" output to a text file daily with a unique file name so the day before ...
0
votes
0answers
21 views

Inserting video clip into another video makes the inserted part run twice as fast and hold at last frame in ffmpeg

Here is what I did. I create a file called concat.txt: file 'original.mp4' inpoint 0.0 outpoint 2.0 file 'middle.mp4' inpoint 0.0 duration 24.0 file 'original.mp4' inpoint 26.0 Then, I run the ...
0
votes
2answers
36 views

Replace part of a video (without replacing the audio) in ffmpeg

I have a video file that is divided into three different sections. I want to replace the middle part of this video with another clip. However, I still want to keep the audio of the original video. Can ...
2
votes
1answer
39 views

Net User information VS Get-ADUser

Very generic question regarding different output for Net User, and Get-ADUser. What is really going on "under the hood" when I run each command? I bring this up only due to getting different ...
1
vote
1answer
28 views

Git Rebase Won't Let Me Type

I'm trying to do a git rebase on the Windows CMD to change a commit message (I've also tried the git bash but the exact same problem occurs there). When I do the rebase via git rebase -i HEAD~2 I've ...
0
votes
0answers
12 views

Stop Kafka proccess after hour

I run process in cmd kafka-console-consumer.bat --bootstrap-server qa-kafka-qa-wrk1:0000 --topic topic.test --from-beginning --consumer-property group.id=user1> C:\Kafka\test.txt Is there any way ...
1
vote
1answer
29 views

Cmd not displaying correctly

I am on Windows 10. Today, I checked the "Legacy Console" option in the cmd console and it's working fine. But after disabling it, the console displayed a blank black console. It seems that ...
1
vote
2answers
81 views

Command prompt how to exclude windows partition using for loop

I want to list all windows partitions and then exclude partition in which window is installed like (C:\ , it can be any letter) here is command to list partitions for /f "skip=1 delims=" %x ...
0
votes
1answer
36 views

how can i rename php files by incrementing the last number?

i want to rename files like this one-piece-espanol-latino - copia (1).php one-piece-espanol-latino - copia (2).php one-piece-espanol-latino - copia (3).php and 274 more... to this in a batch one-piece-...
-1
votes
1answer
20 views

Batch rename multiple files by modification date

I got a bat script for rename files by their creation date but I need to adjust the code below to made to rename files by modification date. @echo off set Folder=%userprofile%\desktop\Images For /f &...
0
votes
0answers
21 views

Error: Could not find this item [duplicate]

can you please help me? I made (or brought) a folder named "con" using command prompt by cd C:\Users\glmanuel\Desktop Then, mkdir con/ I was ready to delete it. So, I dragged it to Recycle ...
2
votes
1answer
296 views

How can I create a file to fill up the disk via cmd?

I want to fill up the disk for a test which requires the disk storage to be full. For this, I found that I could use the command line with the following command: fsutil file createnew <filename> ...
0
votes
0answers
38 views

How to batch convert m4a files to mp3 using ffmpeg?

In Windows, how can I batch convert m4a files to mp3 using ffmpeg ? I use the following line in the command line: FOR I in (*.m4a) DO ffmpeg -i %I -codec:v copy -codec:a libmp3lame -q:a 2 "mp3\%I&...
0
votes
0answers
20 views

Windows command-line: How to check if file exists on a remote [linux] machine?

I need to confirm that certain files and folders exist on a remote Linux machine, preferably via windows command line. I'm using scp to copy files, so I thought that there would be a command to test ...
0
votes
1answer
28 views

windows msg error 1722 when sending message

Lately I learnt to send a message through LAN with the command msg by using: msg /server:EAAULA114-07 * message. But I can't send messages to some PCs because it outputs: Error 1772 getting session ...
0
votes
0answers
36 views

How to rename using the CMD a folder opened in Explorer?

I need to rename through CMD a folder that has a subfolder open in Explorer. Folder/ <= I need to rename this folder. Subfolder/ <= It is open in explorer. files... But whenever ...
0
votes
2answers
18 views

Switch to using network drive instead of personal Drive on cmd prompt

I'm new to command prompt. trying to use it to rename files in batch. i figured out code, but have to move all files to the personal drive on my computer in lieu of the network drive. need help ...
4
votes
1answer
882 views

Would that be a bug? Immediate closing of the current cmd window when executing: move nul 2>&0

Eventually, I use move nul 2>&0 in my scripts to "abruptly" close the current of the cmd window, and thus immediately abort/close the running bat. I can't say it works like a suicide ...
1
vote
1answer
21 views

The arguments “/S” and “/L” of the command ATTRIB won't work

I'm creating a program where I need to make all folders and files, in a given directory, invisible. For that, I'm using the CMD's command ATTRIB, with the arguments /S /D, as well as in the code below:...
0
votes
1answer
43 views

how to copy folder\subfolder\files to program files directory with batch script inside the folder

:: BatchGotAdmin :------------------------------------- REM --> Check for permissions IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( >nul 2>&1 "%SYSTEMROOT%\SysWOW64\...
0
votes
2answers
102 views

How can I rename a directory name replacing the first letter of each word in the name string to uppercase?

On a Windows 10 computer, I've been using free utilities like PFrank tool and Power Toys PowerRenamer. With PFrank I was able to change the case of each word in the name of the filenames to uppercase, ...
0
votes
1answer
32 views

Windows 10 administrator cannot run command prompt as admin

I am definitely administrator and am the only user account. I keep getting a ShellExecuteEx error when trying to run different EXE files (happens when running normally and when trying to run as admin),...
1
vote
1answer
35 views

Alternative of linux cp --update for Windows

On Linux, there is a bash command to copy files, and if the file is already in the destination, to take the newer one based on its timestamp. cp -u source destination The description of this option ...
1
vote
1answer
45 views

Is it possible to increase the packet size while using tracert (for traceroute) in windows cmd?

I am looking to increasing the packet size while using the tracert (traceroute) command in Windows CMD. But in the windows options, it does not give an option for increasing the packet size and uses ...
1
vote
0answers
29 views

List all installed software on PC with program data path

I'm trying to do the same thing as this thread but want the path of the program data file path. I noticed that an app that I installed isn't appearing in the apps section of the settings app.
1
vote
2answers
29 views

PATHEXT environment variable not working

I want to use gcc on Windows, so someone gave me a MinGW folder. I put the D:\software\MinGW\bin\ folder in my PATH. But when I open a new CMD and type gcc, I get 'gcc' is not recognized as an ...
-2
votes
1answer
83 views

The default admin password Windows 10 [closed]

I have only one account on my windows 10, an administrator account with no password. What is the password for that? I use runas /user:Administrator cmd to elevate cmd.exe and it asks me the password.
0
votes
1answer
32 views

Ctrl + D not working to exit Command Prompt nor Anaconda Powershell from Python

Ctrl + D no longer works to exit command prompt nor Anaconda Powershell when I'm in python. All it does is "^D". It worked when I first downloaded Anaconda for Python use. I've tested Ctrl + ...
0
votes
0answers
14 views

Python install in wrong directory in CMD Windows

I installed python in directory C:\PathA with command: python-3.6.1-amd64.exe /quiet TargetDir=C:\PathA and then I tried to reinstall in the other directory C:\PathB with the command: python-3.6.1-...
0
votes
0answers
24 views

Command prompt Echo with Plink

good day, I tried to use the format below for my plink and when I went to login with the username I changed the password on it didn't accept the new password. so my question is, when using "(...
1
vote
1answer
39 views

I concatenated two pictures with the “copy /b” commande, and now I want to get the two images back. How can I do this?

So, like the title say, how can I do this? I noticed that the file size has increased, so the two files are really concatenated, and I deleted the original ones, now how can I unmerge the two pictures?...
1
vote
0answers
41 views

CMD echo working with PLINK>exe

good day, I tried to use the format below for my plink and when I went to login with the username I changed the password on it didn't accept the new password. so my question is, when using "(...
1
vote
1answer
53 views

How do I find who shut down a computer remotely?

Recently, someone at my high school used the command prompt trick where you type: shutdown -i and enter the computers you want to remotely turn off. Is there a way I could/could have found the ...
1
vote
2answers
37 views

rsync-like copy command on windows

tl;dr I'm looking for a near-exact replacement for rsync --recursive --update on vanilla Windows. details What is a command, in Windows, that works like: input: a filesystem pattern (restricted to ...
0
votes
0answers
46 views

Installing Error Numba Python library Windows 10 CMD

I am having trouble trying to install the numba module. I am using windows 10 cmd to install the library. I have installed other modules (pandas, jupyter notebook, numpy) before with no such problem, ...
1
vote
1answer
68 views

How to reverse a netsh firewall command in Windows?

I wanted to appear as offline in Valorant and tried to type in netsh advfirewall firewall add rule name="lolchat" dir=in remoteport=5223 protocol=TCP action=block in my command prompt. Now ...
0
votes
1answer
37 views

.exe in folder “not recognized as an internal or external command”

I am aware that this is a frequently asked question on SU, but I cannot find the solution to my problem in other answers. I have a .exe that is in a folder on my desktop. I have changed directory into ...
0
votes
0answers
26 views

Services, applications do not work - Windows 10

I had a Windows 10 - operated laptop. I recently switched to Windows 8.1, because Windows 10 has a lot of problems. As in the title, services do not work (obviously not all of them), and I am fed up. ...
0
votes
0answers
38 views

Redirecting cmd or powershell output to a file on Windows

I have been using redirect to log output from an exe (e.g. foo.exe > temp.txt). The program outputs data once per second. If I run the redirect for less than about 30 seconds (and stop the process ...
0
votes
0answers
20 views

Open file properties of multiple files at once

Do you know of any cmd script that can open file properties of multiple files at once? I want to edit metadata (e.g., title, comments, etc.) of multiple pictures. I tried highlighting multiple ...
0
votes
0answers
32 views

Windows Explorer.exe crashes when running a cmd command from shell registry

I saw this nice cmd command on this SU answer that removes empty folders in a one liner. I thought this would be very useful to have as a right click context-menu option for folders. So I went over to ...
0
votes
0answers
5 views

Use tar -czvf command to create zip file, but when I open zip archive there is file without extension

I Use tar -czvf command to create zip file, but when I open zip archive there is file without extension. The problem is when I copy this zip file to USB flash drive it gives me this error - Please ...
1
vote
1answer
84 views

Fixing corrupted cmd.exe

for some reason still unclear to me, my cmd.exe seems to be completely broken. I can't start it, regardless how I try it. VS Code returns a Error Code 1 when it starts to open it as a new terminal. ...

1
2 3 4 5
50