2013년 4월 22일 월요일

윈도우의 CMD 명령어


http://ss64.com/nt 에서 긁어 왔습니다. 링크 찾아가면 상세 설명있습니다.
a
   ADDUSERS Add or list users to/from a CSV file
   ADmodcmd Active Directory Bulk Modify
   ARP      Address Resolution Protocol
   ASSOC    Change file extension associations?
   ASSOCIAT One step file association
   AT       Schedule a command to run at a specific time
   ATTRIB   Change file attributes
b
   BCDBOOT  Create or repair a system partition
   BCDEDIT  Manage Boot Configuration Data
   BITSADMIN Background Intelligent Transfer Service
   BOOTCFG  Edit Windows boot settings
   BROWSTAT Get domain, browser and PDC info
c
   CACLS    Change file permissions
   CALL     Call one batch program from another?
   CERTREQ  Request certificate from a certification authority
   CERTUTIL Utility for certification authority (CA) files and services
   CD       Change Directory - move to a specific Folder?
   CHANGE   Change Terminal Server Session properties
   CHKDSK   Check Disk - check and repair disk problems
   CHKNTFS  Check the NTFS file system
   CHOICE   Accept keyboard input to a batch file
   CIPHER   Encrypt or Decrypt files/folders
   CleanMgr Automated cleanup of Temp files, recycle bin
   CLEARMEM Clear memory leaks
   CLIP     Copy STDIN to the Windows clipboard
   CLS      Clear the screen?
   CLUSTER  Windows Clustering
   CMD      Start a new CMD shell
   CMDKEY   Manage stored usernames/passwords
   COLOR    Change colors of the CMD window?
   COMP     Compare the contents of two files or sets of files
   COMPACT  Compress files or folders on an NTFS partition
   COMPRESS Compress individual files on an NTFS partition
   CON2PRT  Connect or disconnect a Printer
   CONVERT  Convert a FAT drive to NTFS
   COPY     Copy one or more files to another location?
   CSCcmd   Client-side caching (Offline Files)
   CSVDE    Import or Export Active Directory data
d
   DATE     Display or set the date?
   DEFRAG   Defragment hard drive
   DEL      Delete one or more files?
   DELPROF  Delete user profiles
   DELTREE  Delete a folder and all subfolders
   DevCon   Device Manager Command Line Utility
   DIR      Display a list of files and folders?
   DIRUSE   Display disk usage
   DISKPART Disk Administration
   DISKSHADOW Volume Shadow Copy Service
   DNSSTAT  DNS Statistics
   DOSKEY   Edit command line, recall commands, and create macros
   DriverQuery Display installed device drivers
   DSACLs   Active Directory ACLs
   DSAdd    Add items to active directory (user group computer)
   DSGet    View items in active directory (user group computer)
   DSQuery  Search for items in active directory (user group computer)
   DSMod    Modify items in active directory (user group computer)
   DSMove   Move an Active directory Object
   DSRM     Remove items from Active Directory
e
   ECHO     Display message on screen?
   ENDLOCAL End localisation of environment changes in a batch file?
   ERASE    Delete one or more files?
   EVENTCREATE Add a message to the Windows event log
   EXIT     Quit the current script/routine and set an errorlevel?
   EXPAND   Uncompress files
   EXTRACT  Uncompress CAB files
f
   FC       Compare two files
   FIND     Search for a text string in a file
   FINDSTR  Search for strings in files
   FOR /F   Loop command: against a set of files?
   FOR /F   Loop command: against the results of another command?
   FOR      Loop command: all options Files, Directory, List?
   FORFILES Batch process multiple files
   FORMAT   Format a disk
   FREEDISK Check free disk space (in bytes)
   FSUTIL   File and Volume utilities
   FTP      File Transfer Protocol
   FTYPE    File extension file type associations?
g
   GETMAC   Display the Media Access Control (MAC) address
   GLOBAL   Display membership of global groups
   GOTO     Direct a batch program to jump to a labelled line?
   GPRESULT Display Resultant Set of Policy information
   GPUPDATE Update Group Policy settings
h
   HELP     Online Help
i
   iCACLS   Change file and folder permissions
   IF       Conditionally perform a command?
   IFMEMBER Is the current user a member of a Workgroup
   IPCONFIG Configure IP
k
   KILL     Remove a program from memory
l
   LABEL    Edit a disk label
   LOCAL    Display membership of local groups
   LOGEVENT Write text to the event viewer
   LOGMAN   Manage Performance Monitor
   LOGOFF   Log a user off
   LOGTIME  Log the date and time in a file
m
   MAPISEND Send email from the command line
   MBSAcli  Baseline Security Analyzer
   MEM      Display memory usage
   MD       Create new folders?
   MKLINK   Create a symbolic link (linkd) ?
   MODE     Configure a system device
   MORE     Display output, one screen at a time
   MOUNTVOL Manage a volume mount point
   MOVE     Move files from one folder to another?
   MOVEUSER Move a user from one domain to another
   MSG      Send a message
   MSIEXEC  Microsoft Windows Installer
   MSINFO32 System Information
   MSTSC    Terminal Server Connection (Remote Desktop Protocol)
   MV       Copy in-use files
n
   NET      Manage network resources
   NETDOM   Domain Manager
   NETSH    Configure Network Interfaces, Windows Firewall & Remote access
   NETSVC   Command-line Service Controller
   NBTSTAT  Display networking statistics (NetBIOS over TCP/IP)
   NETSTAT  Display networking statistics (TCP/IP)
   NOW      Display the current Date and Time
   NSLOOKUP Name server lookup
   NTBACKUP Backup folders to tape
   NTRIGHTS Edit user account rights
o
   OPENFILES Query or display open files
p
   PATH     Display or set a search path for executable files?
   PATHPING Trace route plus network latency and packet loss
   PAUSE    Suspend processing of a batch file and display a message?
   PERMS    Show permissions for a user
   PERFMON  Performance Monitor
   PING     Test a network connection
   POPD     Return to a previous directory saved by PUSHD?
   PORTQRY  Display the status of ports and services
   POWERCFG Configure power settings
   PRINT    Print a text file
   PRINTBRM Print queue Backup/Recovery
   PRNCNFG  Display, configure or rename a printer
   PRNMNGR  Add, delete, list printers set the default printer
   PROMPT   Change the command prompt?
   PsExec     Execute process remotely
   PsFile     Show files opened remotely
   PsGetSid   Display the SID of a computer or a user
   PsInfo     List information about a system
   PsKill     Kill processes by name or process ID
   PsList     List detailed information about processes
   PsLoggedOn Who's logged on (locally or via resource sharing)
   PsLogList  Event log records
   PsPasswd   Change account password
   PsPing     Measure network performance
   PsService  View and control services
   PsShutdown Shutdown or reboot a computer
   PsSuspend  Suspend processes
   PUSHD    Save and then change the current directory?
q
   QGREP    Search file(s) for lines that match a given pattern
   Query Process    Display processes (TS/Remote Desktop)
   Query Session    Display all sessions (TS/Remote Desktop)
   Query TermServer List all servers (TS/Remote Desktop)
   Query User       Display user sessions (TS/Remote Desktop)
r
   RASDIAL  Manage RAS connections
   RASPHONE Manage RAS connections
   RECOVER  Recover a damaged file from a defective disk
   REG      Registry: Read, Set, Export, Delete keys and values
   REGEDIT  Import or export registry settings
   REGSVR32 Register or unregister a DLL
   REGINI   Change Registry Permissions
   REM      Record comments (remarks) in a batch file?
   REN      Rename a file or files?
   REPLACE  Replace or update one file with another
   Reset Session  Delete a Remote Desktop Session
   RD       Delete folder(s)?
   RMTSHARE Share a folder or a printer
   ROBOCOPY Robust File and Folder Copy
   ROUTE    Manipulate network routing tables
   RUN      Start | RUN commands
   RUNAS    Execute a program under a different user account
   RUNDLL32 Run a DLL command (add/remove print connections)

s
   SC       Service Control
   SCHTASKS Schedule a command to run at a specific time
   SCLIST   Display Services
   SET      Display, set, or remove session environment variables?
   SETLOCAL Control the visibility of environment variables?
   SETX     Set environment variables
   SFC      System File Checker
   SHARE    List or edit a file share or print share
   ShellRunAs Run a command under a different user account
   SHIFT    Shift the position of batch file parameters?
   SHORTCUT Create a windows shortcut (.LNK file)
   SHOWGRPS List the Workgroups a user has joined
   SHOWMBRS List the Users who are members of a Workgroup
   SHUTDOWN Shutdown the computer
   SLEEP    Wait for x seconds
   SLMGR    Software Licensing Management (Vista/2008)
   SOON     Schedule a command to run in the near future
   SORT     Sort input
   START    Start a program, command or batch file?
   SU       Switch User
   SUBINACL Edit file and folder Permissions, Ownership and Domain
   SUBST    Associate a path with a drive letter
   SYSTEMINFO List system configuration
t
   TAKEOWN  Take ownership of a file
   TASKLIST List running applications and services
   TASKKILL Remove a running process from memory
   TIME     Display or set the system time?
   TIMEOUT  Delay processing of a batch file
   TITLE    Set the window title for a CMD.EXE session?
   TLIST    Task list with full path
   TOUCH    Change file timestamps  
   TRACERT  Trace route to a remote host
   TREE     Graphical display of folder structure
   TSSHUTDN Remotely shut down or reboot a terminal server
   TYPE     Display the contents of a text file?
   TypePerf Write performance data to a log file
u
   USRSTAT  List domain usernames and last login
v
   VER      Display version information?
   VERIFY   Verify that files have been saved?
   VOL      Display a disk label?
w
   WAITFOR  Wait for or send a signal
   WHERE    Locate and display files in a directory tree
   WHOAMI   Output the current UserName and domain
   WINDIFF  Compare the contents of two files or sets of files
   WINMSDP  Windows system report
   WINRM    Windows Remote Management
   WINRS    Windows Remote Shell
   WMIC     WMI Commands
   WUAUCLT  Windows Update
x
   XCACLS   Change file and folder permissions
   XCOPY    Copy files and folders

FSUTIL 명령어 살펴보기

http://ss64.com/nt/fsutil.html
http://ss64.com/nt/fsutil.html 에서 긁어 왔습니다.
File and Volume specific commands, Hardlink management, Quota management, USN, Sparse file, Object ID and Reparse point management
Create a hardlink
    FSUTIL hardlink create new_filename existing_filename
    Eg : fsutil hardlink create c:\foo.txt c:\bar.txt
Create a new file of a specific size
    FSUTIL file createnew filename
    Eg : fsutil file createnew C:\testfile.txt 1000
Set the short NTFS filename for a file
    FSUTIL file setshortname filename shortname
    Eg : fsutil file setshortname C:\testfile.txt tes1.txt
Set the valid data length for a file
    FSUTIL file setvaliddata filename datalength
    Eg : fsutil file setvaliddata C:\testfile.txt 4096
Set the zero data for a file
    FSUTIL file setzerodata offset=val length=val filename
    offset : File offset, the start of the range to set to zeroes
    length : Byte length of the zeroed range
        Eg : fsutil file setzerodata offset=100 length=150 C:\Temp\sample.txt
List all drives (including mapped and Subst drives)
    FSUTIL fsinfo drives
Query drive type for a drive
    FSUTIL fsinfo drivetype volume pathname
    Eg : fsutil fsinfo drivetype C:
    ListLocalDrives.cmd - List all drives on the local computer
Query volume information
    FSUTIL fsinfo volumeinfo volume pathname
    Eg : fsutil fsinfo volumeinfo C:\
Query NTFS specific volume information
    FSUTIL fsinfo ntfsinfo volume pathname
    Eg : fsutil fsinfo ntfsinfo C:
Query file system statistics
    FSUTIL fsinfo statistics volume pathname
    Eg : fsutil fsinfo statistics C:
QUOTA Management
    FSUTIL quota {query|disable|track|enforce } C:
    
    FSUTIL quota violations
    
    FSUTIL quota modify volume_pathname threshold limit user

    Eg : fsutil quota modify c: 3000 5000 domain\user
Find a file by user name (if Disk Quotas are enabled)
    FSUTIL file findbysid user directory

    Eg : fsutil file findbysid scottb C:\users
File system options:
    FSUTIL behavior query option

    FSUTIL behavior set option

      Where option is one of:
       allowextchar {0|1}       Allow extended characters in filenames
       disablelastaccess {0|1}  Don’t generate last-access times
       quotanotify NumSeconds   Log quota violations, default=3600 seconds
       mftzone {1|2|3|4}        Set MFT Zone, multiple of 200MB
       Bugcheckoncorrupt {0|1}  Enable bugcheck  #
       disablecompression {0|1} Disable compression #
       disableencryption {0|1}  Disable encryption  #
       encryppagingfile {0|1}
       memoryusage {1|2}           Paged-pool memory cache, 1=default #
       symlinkevaluation L2L:{0|1}    Local to local symbolic links #
       symlinkevaluation L2R:{0|1}    Local to remote symbolic links #
       symlinkevaluation R2R:{0|1}    Remote to local symbolic links #
       symlinkevaluation R2L:{0|1}    Remote to remote symbolic links #
       DisableDeleteNotify {0|1}      Delete notifications for all volumes#
       disable8dot3 [volumePath] sfnNum
          sfnNum is between 0 and 3 
           0 = Create short file names (default).
           1 = don’t create short file names. 
           2 = Set 8.3 names on a per volume basis.
           3 = Disable 8.3 names on all volumes except the system volume.

1 = enable option
0 = Disable option
# = Windows7/2008 option

    Eg :  FSUTIL behavior query disable8dot3 
          FSUTIL behavior set disablelastaccess 1

    FSUTIL dirty query volume pathname

    FSUTIL dirty set volume pathname

    Marking a disk as dirty will prompt a Chkdsk at next boot
    Eg :  FSUTIL dirty query C:
Query a reparse point
    FSUTIL reparsepoint query filename

    Eg : fsutil reparsepoint query C:\Server
Delete a reparse point
    FSUTIL reparsepoint delete filename

    Eg : fsutil reparsepoint delete C:\Server
Edit an object identifier
    FSUTIL objectid {query | set | delete | create}
Set sparse file properties
    FSUTIL sparse queryflag filename
    FSUTIL sparse setflag filename

    FSUTIL sparse queryrange filename
    FSUTIL sparse setrange filename
    
    Eg : fsutil sparse queryflag "C:\My Test.txt"
Query the allocated ranges for a file
    FSUTIL file queryallocranges offset=val length=val filename

    offset : File Offset, the start of the range to query
    length : Size, in bytes, of the range

    Eg : fsutil file queryallocranges offset=1024 length=64 C:\Temp\sample.txt
To run FSUTIL, you must be logged on as an administrator or a member of the Administrators group.

2013년 4월 2일 화요일

iPAD 에서 델파이 1.0 실행하기

iPAD 에서 델파이(터보파스칼)를 실행 하기 위해서는 아래와 같은 방법이 있습니다.

1. 도스환경에서 터보파스칼 3(한글 처리 때문에 이것을 권합니다)
2. 윈도우 3.1 환경에서 델파이 1.0 실행하기
3. 이미지 파일을 만들고 이 미미지 파일로 부팅하여 윈 95 환경에서 델파이 2.0 실행하기

참고로  윈도우 3,1은 16 비트 프로그램이고 윈32는 16 비트와 32 비트 가능합니다.
델파이 1.0은 16 비트 환경에서 돌아가고 델파이 2.0 은 32 비트 환경에서 돌아갑니다.

몇가지의 시행 착오 끝에 아이패드2 에서는 윈도우 95를 돌리는 것은 약간 느리고,
그것에 델파이 2.0 까지 돌리려면 상당한 인내가 필요할 것입니다.

IPAD에서 위와 같이 델파이(파스칼)을 돌리려는 시도는 나 자신의 프로그램을 만들어  이동 중이나 휴대중에 프로그램을 돌려 보려는 것입니다. 그리고 필요하다면 현장에서 곧바로 소스를 수정해 볼 수 있으니 좋겠지요.

효용성을 높이기 위하여는 자신의 데스크 탭에 DOSBOX라는 프로그램을 설치하여 아이패드와 동일 한 환경을 만들어 본 작업은 데스크탭에서 하고 필요하면 iPAD를 연결하여 파일을   보내어 실행 하면 되겠습니다.

윈도우 3.1 에서 사용한다면 속도나 활용도가 상당 하다는 것을 알게될것입니다.


구현하는 방법은 iDOS 라는 앱(2013년 3월 현재)을 iPAD(순정)에 설치합니다.
데스크 탭에 iFunBox 라는 프로그램을 다운 받아 설치합니다.
iFUNBOX는 아이튠과 같이 파일을 아이패드에 옮길 수 있습니다.

준비하여야 할 것은
0. iPAD2, DESKTOP(아이툰 설치된)
1. 한글 윈도우 3.1
2. iFunBOX
3. delphi 1.0

윈도우 설치 방법은 상상외로 간단합니다.
1. 한글 윈도우 3.1 파일을 폴더로 만들어 iFunBOX를 이용하여
 - iDOS 의 Documents 폴더에 저장합니다. (이 Documents 가 c: 가 됩니다)
2. iPAD 설치 폴더에서 Setup 하면 Windows 라는 폴더에 윈도우 3.1 이 설치 됩니다.
 - 설치시 그래픽카드는 VGA를 선택하시고 나중에 SVGA로 바꾸시면 됩니다.
 - iDOS는 S3 를 잡게 되어있는데 화면 오른쪽에 약간 어긋남이 있어 기본을 이용 하기로 하였습니다.
3. 프로그램 메니져(progman.exe) 만 덜렁하니 화면에 올라 올것입니다.
 - 파일 메뉴를 선택하여 프로그램 그룹을 만들도 그 그룹에 필요한 프로그램을 올리면 됩니다. 참고로 그 그룹이름은 한글로 입력하면 되지만, 그룹파일명을 영문으로 하여야 됩니다.
* iDOS는 이 부분에 문제가 있어 자동으로 필요한 프로그램을 모아 오지 못하는 것 같습니다. 차차 DOSBOX가 버전업 되면 해결 되겠지요. 그렇게 되면 윈95도 잘 돌려 볼 수 있을 것 같습니다.
 - 이 때 c:\windows\winfile.exe 를 꼭 그룹에 등록하세요.
 - 물론 실행(R)을 이용해도 되지만요.
4. 델파이 설치용 파일 디스켓 십여개를 하나의 폴더에 모아 놓고 그것을 iFUNBOX를 이용하여 iPAD에 복사한다음
5. 윈도우3.1을 구동하고(c:>cd windows   c:>win)
 - 참고로 마우스 설정 부분에서 약간의 조정이 필요 할 것입니다.
 - 또한 약간의 숙달 과정이 필요합니다.
 - 마우스 커서를 해당되는 객체에 옮기고, 화면을 가볍게 뚝 두루리면 왼쪽 크릭이 된 것입니다.
 - 오른쪽 크릭은 가로 화면에서 화면 오른쪽의 버튼을 이용 해도 되지만, 마우스 커서를 해당 객체에 옮겨 하나의 손가락을 이용해 가볍게 터치하고, 이어서 오른쪽에서 손가락으로 한번더 터지를 하면 오른쪽 버튼이 크릭되는 것입니다.
 - 드래그 앤 드롭( drag & drop)은 저도 처음에는 할 줄 몰라 여간 고민을 많이 했는데 약간의 신중 함만 있으면 별로 어렵지 않게 사용이 가능합니다.
 - 역시 마우스커서를 해당 객체에 위치 시키고 한손가락을 잠시 누르면 바탕에 지문 이미지가 나타나고 이때 다른 손가락으로(저는 검지를 처음에 나중에 중지를 이용) 화면을 가볍게 누르고 옮기면 옮겨 집니다. ^.^; 연습 많이 하세요.
6. 아까 복사해온 델파이1.0 폴더 안의 setup.exe를 크릭하면 설치하여 프로그램그룹(영문)을 자동으로 만들어 줍니다.
* 참고로 iPAD를 가로로 하여 화면 상단을 살며시 당기면 키보드와 마우스등을 설정 할 수 있습니다.
7. 사운드 카드는 자동으로 잡아 오른것 같더군요. 저는 필요가 없어서 설치하지 않았습니다.
* 다음에는 컴 포트도 설치 해볼 요량입니다.
8. 윈도우에서 하거나, 나가서 하거나 setup.exe를 다시 실행하여 비디오카드를 svga(800 x 640)으로 바꾸어 보십시요.


아래 이미지는 실제 운용 한 결과 입니다.
다음번에 win95를 구동하는 방법을 설명하도록 하겠습니다. 구글하면 좋은 방법을 찾을 수 있을 것입니다.

tensorflow gpu 사용하기에서

 tensorflow 설치시 주의해야 한다. # Anything above 2.10 is not supported on the GPU on Windows Native python - m pip install "tensorflow<2.11...