Feeds:
Posts
Comments

Posts Tagged ‘file’

@echo off
echo Choose:
echo [A] Set Static IP
echo [B] Set DHCP
echo.
:choice
SET /P C=[A,B]?
for %%? in (A) do if /I “%C%”==”%%?” goto A
for %%? in (B) do if /I “%C%”==”%%?” goto B
goto choice
:A
@echo off
echo “Please enter Static IP Address Information”
echo “Static IP Address:”
set /p IP_Addr=

echo “Default Gateway:”
set /p D_Gate=

echo “Subnet Mask:”
set /p Sub_Mask=

echo “Setting Static IP Information”
netsh interface ip set address “LAN” static %IP_Addr% %Sub_Mask% %D_Gate% 1
netsh int ip show config
pause
goto end

:B
@ECHO OFF
ECHO Resetting IP Address and Subnet Mask For DHCP
netsh int ip set address name = “Local Area Connection” source = dhcp

ipconfig /renew

ECHO Here are the new settings for %computername%:
netsh int ip show config

pause
goto end
:end

Script END!

Sumber : lupa ngopy …..

Read Full Post »

# find / -name ‘.qmail:dhanni’

Option lainnya

# find /home -name ‘*.avi’ ( cari file dgn extesion AVI )

# find /home -name ‘*.mpg’ -o -name ‘*.avi’ ( cari 2 pencarian )

# find /home -iname ‘*.mpg’ -o -iname ‘*.avi’ ( -iname cari file yg sama persis-casesensitive )

# find /home/ -name ‘*.avi’ -a -size +700M ( cari file AVI yg lebih dari 700 MB)

# find /home/ -name ‘*.avi’ -a -size +700M -mtime -15 ( cari file AVI yg lebih dari 700 MB dan yg telah dimodif 15 hari lalu )

# find /home/ -name ‘*.avi’ -a -size +700M -mtime -15 -exec mv ‘{}’ /my/new/movies/ \;

( cari file AVI yg lebih dari 700 MB dan yg telah dimodif 15 hari lalu  pindahkan ke folder /my/new/movies )

Read Full Post »

attrib unhide file/folder

attrib *.* /d /s -h -r -s

Read Full Post »