satu

Gajah mati meninggalkan tulang
harimau mati meninggalkan belang
manusia mati meninggalkan nama

persiapkan klu kalian mati ingin meninggalkan apa ?

Wednesday 11 November 2015

cmd windows

- cek Drive yang ada di windows

> wmic logicaldisk get caption

Caption
C:
D:
E:
if probably the easiest one. Doesn't need administrative privileges, doesn't return more or less than what's needed, etc.
If you want to use it in a script, then wrap it in for /f with the skip=1 option:
for /f "skip=1 delims=" %%x in ('wmic logicaldisk get caption') do @echo.%%x

If you're in Command Prompt:
diskpart
then
list volume
sample output:
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     E                       DVD-ROM         0 B  No Media
  Volume 1         System Rese  NTFS   Partition    100 MB  Healthy    System
  Volume 2     C   System       NTFS   Partition     99 GB  Healthy    Boot
  Volume 3     F   Data (local  NTFS   Partition    365 GB  Healthy
and finally
exit
to return to the command line. sumber : http://superuser.com/questions/139899/see-available-drives-from-windows-cli
share folder in windows 
in cli : net share cilok=E:\

keterangan : cilok = ( nama hasil share ) 
             E:\   = drive yang dishare 

lalu untuk di cek diclient apakah sudah termount ketik 
in cli : net use 

No comments:

Post a Comment