Problemas ao tentar descobrir o tamanho da lixeira via .bat #52116
Replies: 2 comments
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Hi @UserNotfoundR , thanks for participating! Unfortunately, we don’t currently have moderators for languages other than English. Until that changes, we need to ask that everyone use English here in the GitHub Community when posting. We’ll be locking any posts in languages other than English for now, including this one. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
@echo off
setlocal enabledelayedexpansion
set "pasta=lixeira"
for /f "tokens=1-5" %%a in ('dir /-c/s %pasta%^|find "total de bytes"') do set "tamanho_bytes=%%c"
set /a "tamanho_mb = tamanho_bytes / 1024 / 1024"
set /a "tamanho_gb = tamanho_mb / 1024"
echo Tamanho da pasta: %pasta%
echo Em bytes: %tamanho_bytes%
echo Em MB: %tamanho_mb% MB
echo Em GB: %tamanho_gb% GB
pause
esse e o comando pelo que eu sei é c:$Recycle.bin mais da isso:
Tamanho da pasta: C:\Users\AppData\Local\Temp
Em bytes: 3168518514
Em MB: 3021,73 MB
Em GB: 2,95 GB
Tamanho da pasta: c:$Recycle.bin
Em bytes: 3168518514
Em MB: 3021,73 MB
Em GB: 2,95 GB
quando so tem o comando da lixeira mesmo com ela cheia fala que tem 0mb e etc.
Beta Was this translation helpful? Give feedback.
All reactions