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).

383 questions
0
votes
0 answers

Remove com port using devcon for loop

I started learning command line yesterday. My supervisor asked me to delete extra com ports. I was trying to delete com port using command line. Right now I am using devcon.exe that is a part of windows WDK. I have tried using devcon findall =ports…
Mr_U4913
  • 101
0
votes
1 answer

How to run PUTTY and skip dialog?

I have a web application that contains a command to start an EXE Process.Start("MyApp.exe") This app will then run putty.exe and will SendKeys to emulate keystrokes to the application. The app works fine if I start under my username, or even if I…
Ahmad Al-Mutawa
  • 127
  • 1
  • 2
  • 11
0
votes
1 answer

Elevate to administrator privileges in CMD/Powershell without UAC?

I managed to change the port or remote desktop on my Windows Server 2016, using REGEDIT. But the problem began when I forgot to open that port in the firewall, so therefor I can no longer access remote desktop. The server is still running a website…
Jocke155
  • 3
  • 1
  • 5
0
votes
1 answer

How to create a 1 line command to delete certain number of folders

I am trying to create a 1 line command that will get all directories matching a pattern and delete a certain number of them. Lets say i have a directory like this: C:/ tmp/ www/ 01/ 02/ 03/ 04/ …
Chase
  • 103
  • 3
0
votes
2 answers

getting variables for partition size from diskpart in batch file

Im trying to execute part of a batch file only if a specific partition is at least a certain size. I found an example of diskpart being used in a batch file here:…
Sveniat
  • 3
  • 4
0
votes
2 answers

Check `Restore on AC/Power Loss` from CMD/Powershell on windows 10

I've set the Restore on AC/Power Loss from the windows Bios menu on computer startup for a few Windows machines. How can someone confirm (remotely) that I have done that, is there a way to do this from a remote desktop? Bonus points if you know how…
Jono
  • 117
  • 1
  • 5
0
votes
1 answer

IIS ftp server issue from command line

I'm trying to config an ftp server on IIS (Windows Server 2008 R2) I configured basic authentication with read,write permissions for a user and no SSL I also opened port 21 on server firewall then from server cmd, i opened localhost, and after login…
user350655
  • 1
  • 1
  • 1
0
votes
1 answer

User write to C from CMD

I have a very strange problem. On some computers in my network I can go to C:\ directory, run edit program and save file to C:. But when I list files in directory this file is not listed. But when I open the same file with edit program I can see…
0
votes
1 answer

remote Windows command line

I am connecting from my pc1 to Windows server via Widows Remote Desktop Client. Then I execute one application (it has maximized window, and must stay maximized) on remote computer via his own terminal command line. But what I need now is, to be…
0
votes
1 answer

Robocopy: How to copy assets from multiple locations to a single location and maintain a log

I have multiple folders containing assets (each folder has subfolders containing these assets .mp3, .txt, .png, etc). I want to copy all this assets along with the subfolder to a single location/folder. I was able to successfully run a robocopy…
0
votes
1 answer

Can forfiles search multiple drives in the same command and create a txt file of results?

Can forfiles search multiple drives in the same command and create a text file of results? I have the following that works to show me the results in command prompt but what I really need is a .txt file that displays all the matches. Also, if there…
0
votes
1 answer

How to rar the newest (The latest modified date file) file?

I have the folder c:\AA\ that everyday there will be a new BAK file. When I run the command it will re-rar every files not just the newest file. I use this batch code: FOR %%A IN (C:\AA\*.txt*) DO "C:\Program Files\WinRAR\WinRAR.exe" m…
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?
Rob Nicholson
  • 1,707
  • 8
  • 29
  • 56
0
votes
1 answer

FTP Server 2008 (This webpage is not available)

Im having trouble getting access to my FTP server on a web browser. On the local server i am able to (ftp://192.168.50.11) and login using user name and password using the browser. On a different machine \ network I am not able to access the ftp…
0
votes
2 answers

Print text file with folder file names

So i have been tasked with getting folder and file names for a portable hard drive. Currently I'm not sure how to go about doing this I know the standard command prompt way to go about it, but let's say it's over a million files spread across about…