Questions tagged [windows-command-prompt]

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

388 questions
2
votes
0 answers

Strange character inside dates in "net user" command output

When running the net user username /domain command in cmd, all the dates (Password last set, Password expires, Password changeable and Last logon) have a strange character before the individual dates numbers, like: Password last set …
Goozak
  • 121
  • 4
2
votes
2 answers

Delete all files within a directory within a specific subfolder

I have seen and tried a few solutions online but these don't seem to be working. I don't need a recursive function. Basically I have a directory with numerous subfolders which all have subfolders of name "leaf", I wish to remove all files within…
1
vote
2 answers

how to pipe the output of a command (let's say ipconfig) in another cmd window?

"Commands that provide a lot of information should be run in a separate command shell with output piped through a pager (the “more” command), and with an appropriate title on the second command window. " This is what i am supposed to do.
K V
  • 13
  • 3
0
votes
0 answers

Cmd - Cleaner way for to retrieve ServiceName and assign to variable

Is there a cleaner way to retrieve and assign the service name to a variable in cmd ? My current attempt: set svc_query="sc queryex type= service state= all | find /i "plusfield" | find /i "service"" for /F "tokens=*" %%i in (' %svc_query% ') do…
0
votes
1 answer

Leading zeros in lss compare in cmd.exe causes unexpected result

if 8 lss 1 echo Less [Nothing displayed] if 08 lss 1 echo Less Less Why?
0
votes
1 answer

Renamed executable files Cmd and Utilman and now its not opening

I forgot my windows password So I tried to change "Accessibility" to "Cmd" on Sign-in windows by following these steps: Opened Advanced Startup Menu > Trouble Shoot > Advanced Options > Cmd In cmd I renamed my files in my System32 : 1)Renamed…
-1
votes
1 answer

Windows CMD run a command and inject the date

I have the following command: c:\run.exe >> c:\log.txt I actually want: c:\run.exe >> c:\log_19-07-2016.txt Can it be done? Thanks
-3
votes
2 answers

Why can't I cd to my file in cmd?

I'm typing cd ~ C:\Desktop\gitPractice And I get this return: bash: cd: too many arguments What do I need to fix here in order to be able to change directory?
-6
votes
1 answer

BAT file that prompts for the computer name that will executed on it

I need to create a .bat script that will be executed on single/multiple machines I need first to create a bat that prompts for the computer name that the command will be executed on it I prefer not to use Ps tools