r/cmd • u/[deleted] • Jul 04 '21
r/cmd • u/Western_Sink_9914 • Jan 24 '24
Default user0
Can someone tell me how to delete “default user0” I’ve tried a couple other methods not using cmd but they don’t seem to help. Whenever I try to delete it, it tells me to do it using the proper syntax but first of all “default user0” doesn’t have a password so how am I supposed to type this? Pls help
r/cmd • u/Burg-man • Oct 26 '20
How to create cmd file
Hi anyone know how to create a bat file with the command "powercfg lastwake" and save it to my Desktop? I want to be able to click on it and check what triggered the PC to wake up.
r/cmd • u/Moises2525 • Jul 05 '20
How to get the size of files or folders and convert to .txt files?
Hi, I have a list of 100+ folders inside a directory, I already know how to list the names of every folder and convert it to a .txt files.
Now I want to do it with their files sizes, is there a way to do that in CMD? my desired output would look something like on the below.
14.00gb
12.32gb
843mb
36.93gb
and so on.
Thanks in advance, hoping someone can figure this out. Thanks.
r/cmd • u/thiagovscoelho • Jan 29 '15
I just told my poor computer to make a tree of all of its contents, it's been loading for a while now
r/cmd • u/kracklesnapz • Feb 23 '23
Find who's on your internet!
I recently created a batch program (in python but uses mostly batch) where it uses arp /a to gather all the ip's on your network. Then it shows them all in an interface using python tkinter. After that it uses this cool technique I found out about: if u do nslookup *device_ip *gateway_ip it resolves the name! then it shows the device with it's resolved name. I found my xbox and roku on the internet interface. I named it "IP_RESOLVER_2000".
r/cmd • u/[deleted] • Nov 27 '20
Delete Folders older than X days
I am looking for a command that deletes folders in a folder older than X days
I have this script, but it only deletes files not folders
forfiles /p "C:\whatever" /s /m *.* /d -3 /c "cmd /c del .@path"
the . in .@path shouldn't be there but it links to a reddit thing
r/cmd • u/RasseTheBoy • Oct 26 '16
How to enter the matrix
Open notepad
Enter these command lines: @echo off color 0a :top echo %random% %random% %random% %random% %random% echo %random% %random% echo %random% %random% %random% echo %random% %random% %random% %random% echo %random% echo %random% %random% %random% goto top
Save file as Matrix.bat
Double click the .bat file
Have fun XD
r/cmd • u/jbudemy • Feb 01 '24
How to return to .bat file after calling python.exe
I've never had this problem before and I've never used Python before, I'm new to Python and still learning it. I created a py.bat file in the same dir as python.exe so I have to type fewer letters when running a Python script while doing Python tutorials. My path is set up to see python.exe also. Here's my py.bat program which I run in a cmd.exe window:
@echo off
rem Updated: 2/1/24
rem Run python program.
call python %1 %2 %3 %4 %5
echo Done with %0But "Done with \users\BLAH...python.exe" never shows. I have also tried:
@echo off
rem Updated: 2/1/24
rem Run python program.
python %1 %2 %3 %4 %5
echo Done with %0While I do use Pycharm to make the Python programs I use the cmd.exe command line to run the programs with my py.bat file.
How do I get the last line echo Done with %0 to print that statement and the path of the py.bat file?
Thank you!
r/cmd • u/Suspicious_Ad7992 • Sep 13 '23
cmdlets
'does anyone know a good website to check what commands (cmdlets) do?
(windows powershell)
Need have with cmd to lock two or more drives
Hi, I'm trying to create a .bat file that can lock (bitlocker) my two secondary drives.
So far, I've only been able to create separate .bat files to individually lock the drives using the following commands, respectively:
manage-bde -lock D:
manage-bde -lock F:
But have been unable to create a command that can lock both drives by running just one .bat file.
Can anybody tell me how I can do this?
r/cmd • u/Competitive_Ad_6239 • Aug 04 '23
Looking for CMD too similar to how "=importhtml" works in sheets.
Looking for CMD tool similar to how importhtml works.
I was wondering if anyone knows any command line tools that run similar to how importhtml works. input url, select table index, get csv data in return.
Using curl along with pup, awk,sed and some others I cant think of right now. I would get alot closer than a raw html table, but still not close at all to a csv file.
I attempted to also try and convert the html to a json, but couldn't get that one figured out either. But that's also an option if possible.
Reason for this is its a minimum of 1800 tables, and command line to parse just seems like the most efficient before uploading to sheets.
r/cmd • u/dangdilf • Jul 12 '23
I did a tracert cmd for the following website. Can anyone offer any insight on the result?
Thanks in advance
r/cmd • u/herppunaattori • May 29 '22
cmd scripts
Hi!
I'm trying to write a script that will give me different final results depending if I can get ping answer or if it request timeout. How can I do that on cmd?
Example.
Ping (IP)
Reply from (IP): bytes=32 time=5ms TTL=60
Reply from (IP): bytes=32 time=5ms TTL=60
Reply from (IP): bytes=32 time=5ms TTL=60
Reply from (IP): bytes=32 time=5ms TTL=60
It is working!!!
or
ping
resquest time out
resquest time out
resquest time out
resquest time out
its not working!
r/cmd • u/Sensitive-Argument99 • Jan 28 '22
How to connect to new wifi using cmd?
Hello, i want to connect to new wifi using only cmd.Is that even possible?
r/cmd • u/thefateofdreams • May 09 '21
Created a batch file that converts videos to ASCII characters
As the title states, I created a simple interface that allows the user the ease of access to convert their .mp4 files to ASCII characters. The reason for this program is because I wanted to help my friend who isn't well versed in command-line interactions. The program appears completely functional, but I am in need of help to track down any potential bugs that could affect its performance. You can find it here ( CapedCrusader42/Video-To-ASCII-Converter: This is a cmd file that allows for the easy conversion of the .mp4 video format to ASCII characters. (github.com) ) on my GitHub, go to releases and use the newest version number to get the most up-to-date version. Any feedback would be greatly appreciated, thank you.
r/cmd • u/Forsaken_Pizza • Mar 26 '21
Using CMD to download .7z from Personal or Public Cloud provider
Hey guys, how do I go about creating a command or .bat that downloads a .7z to a users computer. I'd like to take advantage a Personal or Public Cloud provider such as Google Drive, OneDrive, Box or Dropbox.
I'd like to download a .7z to a users c:\ then unpack it to install something. However, I don't want to bog down our VPN connection. It's kind of stupid, but I'd like to give it a go.
I've tried everything I can with curl, I'm not a big fan of wget since it's a Windows environment but I'm open to suggestions.
r/cmd • u/JustMerc63 • Mar 21 '21
First time using cmd, trying to make a game. :check is supposed to show the player's stats; however, every time I enter "check" in :citadel cmd automatically closes instead of going to :check. What mistakes did I make in my code? Thanks
:begin
set /A HP=50
set /A Money=0
set /A Scrap=0
set Location=:citadel
goto :citadel
:citadel
echo.
echo THE CITADEL
echo A shining city and bastion of civilization.
echo Shops line the streets.
echo.
echo Actions:
set /p action=[Check/Shops/Leave]
if /I %action%="Check" goto :check
if /I %action%="Shops" goto :shops
if /I %action%="Leave" goto :map
pause >nul
:check
echo.
echo %HP% HP
echo %Money% Money
if %Scrap%>0 echo %Scrap% Scrap
goto :citadel
r/cmd • u/PixelBrush6584 • Mar 09 '21
How can I remove vertical space between lines in the CMD window?
r/cmd • u/[deleted] • Feb 19 '21
DiskPart: a Windows build-in command-line tool to format USB drive.
Just a simple guide to use command-line diskpart to format USB drive.
Link:
r/cmd • u/balodia26 • Nov 15 '20
Windows Terminal 1.5 - New Features and lots of Improvements
r/cmd • u/Ranvir33 • Nov 06 '20
How to start MS-Teams through cmd
So i am trying automate as much of my works as possible and one task i do everyday is open MS-Teams.I have tried to open it but it doesn't work,whenever I type start Update.exe(i found that was the file shortcut was targetting)and it just gives me a bunch of options so i thought there was a problem with cmd so i manually went to the file and double clicked on it.And the EXACT same thing happened it opened a new cmd window and gave me the ame text
can anyone help me with this????????????????????