Microsoft/Windows2009. 9. 28. 15:44
open with cmd.exe 라고 하면되려나?

어짜피 둘다 레지스트리 상에 등록은 될텐데 귀찮게 레지스트리에서 할 바에는
메뉴에서 하는게 편할 듯 하다.

Step 1. 아무 폴더나 열고 "도구 - 폴더 옵션"을 누른다.

Step 2. 파일 형식에서 폴더를 찾는다. (솔찍히 파일 폴더랑 차이는 모르겠다)


Step 3. 고급을 누르면 아래의 파일 형식 편집이 뜨고, "새로 만들기"를 누른다.

Step 4. 명령은 우클릭 메뉴에서 나오는 말이니 대충 알아서 넣고, 응용 프로그램에 "cmd.exe"를 입력한다.

Step 5. 눌러본다.


[링크 : http://sagess.tistory.com/63]
[링크 : http://www.koosaj.com/usefully/tricks-for-your-pc/open-active-folder-in-command-prompt/]

귀찮으면 다음 파일을 받아서 설치 right, now~!

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\open_with_cmd]
@="open with cmd"

[HKEY_CLASSES_ROOT\Folder\shell\open_with_cmd\command]
@="cmd.exe \"%1\""


Posted by 구차니
Microsoft/Windows2009. 9. 16. 14:09
net view <SERVERNAME>
하면 서버에서 공유중인 목록이 출력된다.

그런데
시스템 오류 5이(가) 생겼습니다.

액세스가 거부되었습니다.
요런 에러가 발생을 해서 검색을 해보니

에러 메시지의 원인은 다음과 같을 수 있습니다:
 
    1. 시간 동기화 문제
 
    2. 원격 컴퓨터에 대한 접근권한 없음 (Share, NTFS, GPO).
 
    3. 방화벽 혹은 3rd 파티 프로그램에 의한 원격지 접속의 방해
 
    4. 컴퓨터의 계정이 사용불가능함 (혹은 암호의 유효기간이 지남)
 
             혹은 존재하지 않는 도메인
 
    5. 액티브 디렉토리의 복제 문제

[링크 : http://support.microsoft.com/kb/555644]
라고 되어있다.

일단 서버측의 시간을 보니.. 임베디드라서 0 epoch에서 시작.. 1970년이다.. (멍....)
Posted by 구차니
Microsoft/Windows2009. 7. 5. 23:23
오래전에 상당히 알려진 녀석이었는데 귀찮아서 안하다가
도저히 안되겠다 싶어서 적용을 했다.

프로그램은 아래의 링크에서 직접받는게 그래도 실뢰할 수 있을 것이고
그냥 실행하고나서 USB 자동실행 하지 않기 버튼 누르면 해결!

깜찍한 아이콘

매우 구린 UI

[링크 : http://www.ncsc.go.kr/Global/p_Print.jsp?tbName=IGMSCRDOC&bIndex=1415]
Posted by 구차니
Microsoft/Windows2009. 4. 15. 11:39
VC++ 6.0 기준으로 사용가능한 방법은 아직 찾지 못했다.
리눅스에서는 ps -ef 하면 실행시의 옵션항목(아규먼트)들이 같이 표기 되는데
윈도우에서는 프로그램 이름만 보이게 되어서, 어떠한 옵션으로 실행이 되었는지 궁금해질때가 있다.

그래서 검색을 해보니 .net framework에서는 process 클래스에 startinfo 라는 항목이 존재한다.
이것을 사용하면 argument를 알아 올수 있겠지만, 난 .net을 싫어하는 관계로.. 다른 방법을 찾아 봐야겠다.

using System; 
using System.Diagnostics; 

namespace ProcessArgsTest 
{ 
  class Test 
  { 
    static void Main()  
    { 
      Process [] localAll = Process.GetProcesses(); 
      foreach (Process p in localAll) 
      {   
        if (p.ProcessName == "notepad") 
        { 
          Console.WriteLine(p.ProcessName + " [" + p.StartInfo.Arguments + "]"); 
        } 
      } 
    } 
  } 
} 


[발견 : http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/669eeaeb-e6fa-403b-86fd-302b24c569fb/]
[process.GetProcesses method : http://msdn.microsoft.com/en-us/library/1f3ys1f9.aspx]
[process.StartInfo method : http://msdn.microsoft.com/en-us/library/system.diagnostics.process.startinfo.aspx]
Posted by 구차니
Microsoft/Windows2009. 3. 27. 16:19
제목은 저렇게 적었지만, 제대로 되는지는 모르겠다.
내꺼에서 해보니.. 의도한 것 처럼 많이 나오지 않는다 ㄱ-

C:\>ipconfig /displaydns

Windows IP Configuration

         1.0.0.127.in-addr.arpa
         ----------------------------------------
         Record Name . . . . . : 1.0.0.127.in-addr.arpa.
         Record Type . . . . . : 12
         Time To Live  . . . . : 579879
         Data Length . . . . . : 4
         Section . . . . . . . : Answer
         PTR Record  . . . . . : localhost


         minimonk.tistory.com
         ----------------------------------------
         Record Name . . . . . : minimonk.tistory.com
         Record Type . . . . . : 1
         Time To Live  . . . . : 2
         Data Length . . . . . : 4
         Section . . . . . . . : Answer
         A (Host) Record . . . : 211.172.252.15



C:\>ipconfig /?

USAGE:
    ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
              /flushdns | /displaydns | /registerdns |
              /showclassid adapter |
              /setclassid adapter [classid] ]

where
    adapter         Connection name
                   (wildcard characters * and ? allowed, see examples)

    Options:
       /?           Display this help message
       /all         Display full configuration information.
       /release     Release the IP address for the specified adapter.
       /renew       Renew the IP address for the specified adapter.
       /flushdns    Purges the DNS Resolver cache.
       /registerdns Refreshes all DHCP leases and re-registers DNS names
       /displaydns  Display the contents of the DNS Resolver Cache.
       /showclassid Displays all the dhcp class IDs allowed for adapter.
       /setclassid  Modifies the dhcp class id.



Displaying or clearing the DNS Resolver Cache in Windows

ipconfig /displaydns

With the displaydns option you can display the contents of the DNS Resolver Cache



[발견 1: http://www.myptsmail.com/blog/?p=333]

[발견 2: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/AdminTips/Network/ManagetheDNSresolvercachewithIPCONFIG.html]

Posted by 구차니
Microsoft/Windows2009. 3. 23. 18:20

Basic Naming Conventions

The following fundamental rules enable applications to create and process valid names for files and directories, regardless of the file system:

  • Use a period to separate the base file name from the extension in the name of a directory or file.
  • Use a backslash (\) to separate the components of a path. The backslash divides the file name from the path to it, and one directory name from another directory name in a path. For additional details about what a path is, see the Path Names and Namespaces section below.
  • Use a backslash as required as part of volume names, for example, the "C:\" in "C:\path\file" or the "\\server\share" in "\\server\share\path\file" for Universal Naming Convention (UNC) names. You cannot use a backslash in the actual file or directory name components because it separates the names into components.
  • Use almost any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

    • The following reserved characters are not allowed:

      < > : " / \ | ? *

    • Characters whose integer representations are in the range from zero through 31 are not allowed.
    • Any other character that the target file system does not allow.
  • Use a period as a directory component in a path to represent the current directory, for example ".\tmp.txt".
  • Use two consecutive periods (..) as a directory component in a path to represent the parent of the current directory, for example "..\tmp.txt".
  • Do not use the following reserved device names for the name of a file:

    CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9

    Also avoid these names followed immediately by an extension; for example, NUL.txt is not recommended.

  • Do not assume case sensitivity. For example, consider the names OSCAR, Oscar, and oscar to be the same, even though some file systems (such as a POSIX-compliant file system) may consider them as different. Note that NTFS supports POSIX semantics for case sensitivity but this is not the default behavior. For additional information, see CreateFile.
  • Do not end a file or directory name with a trailing space or a period. Although the underlying file system may support such names, the operating system does not. However, it is acceptable to start a name with a period.

[출처 : http://msdn.microsoft.com/en-us/library/aa365247.aspx]




Posted by 구차니
Microsoft/Windows2009. 3. 18. 16:50
Windows generates short file names from long file names in the following manner:
  • Windows deletes any invalid characters and spaces from the file name. Invalid characters include:
    . " / \ [ ] : ; = ,
  • Because short file names can contain only one period (.), Windows removes additional periods from the file name if valid, non-space characters follow the final period in the file name. For example, Windows generates the short file name
    Thisis~1.txt
    from the long file name
    This is a really long filename.123.456.789.txt
    Otherwise, Windows ignores the final period and uses the next to the last period. For example, Windows generates the short file name
    Thisis~1.789
    from the long file name
    This is a really long filename.123.456.789.
  • Windows truncates the file name, if necessary, to six characters and appends a tilde (~) and a digit. For example, each unique file name created ends with "~1." Duplicate file names end with "~2," "~3," and so on.
  • Windows truncates the file name extension to three characters or less.
  • Windows translates all characters in the file name and extension to uppercase.
Note that if a folder or file name contains a space, but less than eight characters, Windows still creates a short file name. This behavior may cause problems if you attempt to access such a file or folder over a network. To work around this situation, substitute a valid character, such as an underscore (_), for the space. If you do so, Windows does not create a different short file name

For example, "Afile~1.doc" is generated from "A file.doc" because the long file name contains a space.

No short file name is generated from "A_file.doc" because the file name contains less than eight characters and does not contain a space.

The short file name "Alongf~1.txt" is generated from the long file name "A long filename.txt" because the long file name contains more than eight characters.


가끔 case sensitive 하지 않은 이 써글 파일 시스템이 저주스럽습니다 ㄱ-


[링크 : http://support.microsoft.com/kb/142982]
Posted by 구차니
Microsoft/Windows2009. 2. 6. 07:12
윈도우 기준으로 한글폰트중 **체 폰트는 고정폭이다.
(예: 굴림체는 고정폭 , 굴림은 가변폭)
[참고 : http://mwultong.blogspot.com/2006/07/html-css.html]

그러면.. 영문은 어떻게 구분해야 하나?
Courier New
Courier
Lucida Console
Fixedsys
정도 일려나..

[참고 : http://www.lowing.org/fonts/]
Posted by 구차니
Microsoft/Windows2009. 2. 3. 18:10
공유기에서는 특정 MAC 어드레스를 특정 IP로 DHCP 할당을 정하는 기능이 있는데,
윈도우 자체 내장 공유기에서도 그러한 기능이 가능하다고 한다.

기본 게이트웨이, DNS 및 호스트 이름 구성

ICS 클라이언트는 기본 게이트웨이와 DNS 서버에 대해 ICS 호스트를 사용하도록 구성해야 합니다. 이렇게 하면 ICS 호스트가 클라이언트를 위해 인터넷 게이트웨이 역할을 하고 클라이언트를 위해 이름 확인을 수행합니다. Windows XP ICS에서는 ICS가 사용하는 내부 인터페이스의 주소는 항상 192.168.0.1입니다. 따라서 도메인 이름 시스템(DNS) 및 동적 호스트 구성 프로토콜(DHCP) 요청에 대해 이 주소를 사용하도록 정적 클라이언트를 구성해야 합니다.

또한 Windows XP ICS는 항상 MSHOME.NET의 도메인 이름을 사용하므로 클라이언트에 대해 정규화된 도메인 이름을 지정하려면 클라이언트 이름 다음에 ".MSHOME.NET"을 사용해야 합니다. 예를 들어, "COMPUTER1.MSHOME.NET"은 이름이 COMPUTER1인 내부 클라이언트의 정규화된 이름입니다.

정적 클라이언트를 구성하려면 다음 단계를 사용하십시오.

참고: 이 문서에서는 클라이언트 컴퓨터가 Windows XP를 실행하고 있다고 가정합니다. 어떤 운영 체제를 클라이언트에서 실행하는지에 관계 없이 목적은 같지만 실제 프로세스는 다를 수 있습니다.
  1. 시작, 제어판, 네트워크 및 인터넷 연결을 차례로 누른 다음 네트워크 연결을 누릅니다.
  2. 개인 ICS 네트워크에 연결된 네트워크 연결을 마우스 오른쪽 단추로 누른 다음 속성을 누릅니다.
  3. 일반 탭의 이 연결에 다음 항목을 사용 목록에서 인터넷 프로토콜(TCP/IP)을 누른 다음 속성을 누릅니다.
  4. 일반 탭에서 다음 IP 주소 사용을 누릅니다. 항목을 다음과 같이 구성합니다.
    • IP 주소: 이 클라이언트에 대해 선택한 IP 주소(예: 192.168.0.100)
    • 서브넷 마스크: 255.255.255.0
    • 기본 게이트웨이: 192.168.0.1
    • 다음 DNS 서버 주소 사용을 누른 다음 기본 설정 DNS 서버 상자에 192.168.0.1을 입력합니다.
  5. 고급을 누른 다음 DNS 탭을 누릅니다.
  6. 이 연결의 DNS 접미사 상자에 MSHOME.NET을 입력합니다.
  7. 확인을 누릅니다.
  8. 확인을 누릅니다.
이름 확인을 위해 컴퓨터 이름을 적어 둡니다.
  1. 시작을 누르고 제어판을 누른 다음 성능 및 유지 관리를 누르고 시스템을 누릅니다.
  2. 컴퓨터 이름 탭을 누릅니다.
  3. "전체 컴퓨터 이름" 줄의 항목을 적어 둡니다.

    이 문서의 목적을 위해 "전체 컴퓨터 이름" 줄에 나열된 이름에서 첫 번째 마침표 앞(마침표는 제외)에 나오는 부분까지가 컴퓨터 이름에 해당합니다. 예를 들어, "COMPUTER1."이 나열되면 컴퓨터 이름은 COMPUTER1(마침표 제외)입니다.
  4. 열려 있는 모든 대화 상자를 닫습니다.

정적 클라이언트를 Hosts 파일에 추가

정적 구성을 완료하려면 각 정적 클라이언트를 ICS 호스트의 Hosts 파일에 둡니다. Hosts 파일을 사용하면 이름 확인 속도가 증가하고 인터넷에서 DNS 서버로 불필요한 쿼리가 보내지지 않습니다. 인터넷에 전화 접속 연결하는 경우 정적 클라이언트를 Hosts 파일에 추가하면 인터넷 연결을 위해 전화 접속하는 트래픽이 최소화됩니다.
  1. Windows XP 기반 ICS 호스트 컴퓨터에서 Windows 탐색기를 시작하고 다음 폴더를 엽니다.
    %SystemRoot%\System32\Drivers\Etc
  2. 이 폴더에는 사용자가 알고 있어야 하는 두 파일이 들어 있습니다. Hosts.ics 파일은 ICS가 동적으로 구성된 클라이언트에 대한 정보를 저장하는 데 사용됩니다. 연결이나 데이터 손실을 막기 위해 이 파일은 변경하지 마십시오. Hosts 파일(파일 이름 확장명 없음)은 정적으로 구성된 클라이언트에 대한 정보를 추가하는 파일입니다. Hosts 파일을 마우스 오른쪽 단추로 누른 다음 열기를 누릅니다. 목록에서 프로그램 선택을 누른 다음 확인을 누릅니다. 프로그램 목록에서 메모장을 누른 다음 확인을 누릅니다. 메모장이 시작되고 Hosts 파일의 내용이 표시됩니다.
  3. 파일에는 "127.0.0.1 localhost"라는 항목만 들어 있을 것입니다. 삽입 포인터를 마지막 항목 다음의 첫 번째 빈 줄로 이동합니다.
  4. 앞의 항목과 같은 모델에 따라 먼저 정적으로 구성된 클라이언트의 IP 주소를 입력하고 Tab 키를 누른 다음 정규화된 컴퓨터 이름을 입력합니다. 예를 들어, 정적으로 구성된 클라이언트의 IP 주소가 192.168.0.100이고 호스트 이름이 COMPUTER1인 경우 다음과 같이 입력합니다.
    192.168.0.100 COMPUTER1.MSHOME.NET
    IP 주소와 이름을 구분하는 것은 탭 문자라는 사실을 염두에 둡니다.

  5. Enter 키를 두 번 눌러 마지막 항목 다음에 빈 줄을 두 개 만듭니다. 파일을 저장한 다음 메모장을 끝냅니다.
이렇게 하면 정적으로 구성된 클라이언트가 ICS 네트워크에 참가할 수 있도록 구성이 완료됩니다.
[출처 : http://support.microsoft.com/kb/309642/ko]


그리고 DHCP는 무조건 192.168.0.1 대역을 할당 하도록 되어 있는데, 이를 변경하는 방법은 아래와 같다.
ICS 호스트에서 DHCP 서비스의 IP 범위를 변경하려면 다음과 같이 하십시오.
  1. 레지스트리 편집기를 사용하여 다음 레지스트리 키에서 IntranetInfo 값의 데이터 값을 수정합니다.
    Hkey_Local_Machine\System\CurrentControlSet\Services\ICSharing\Settings\General
    나열된 첫 번째 숫자는 해당 ICS 호스트의 내부 IP 주소의 IP 주소입니다. 두번째 숫자는 쉼표로 구분된 서브넷 IP 주소입니다. 새 범위의 첫 번째 IP 주소를 입력하고, 쉼표로 구분한 다음 서브넷 마스크(예: 169.254.0.1,255.255.0.0.)를 입력합니다.
  2. 다음 레지스트리 키에서 Start 값의 데이터 값을 수정합니다.
    Hkey_Local_Machine\System\CurrentControlSet\Services\ICSharing\Addressing\Settings
    값을 선택한 IP 범위의 두번째 주소로 변경합니다. 이 주소 값은 IntranetInfo 키에 사용되는 IP 주소보다 작거나 같을 수 없습니다.
  3. 같은 레지스트리 키에서 Stop 값의 데이터 값을 수정합니다. 선택한 IP 범위의 마지막 IP 주소를 입력합니다.
  4. 시작을 누르고 설정을 가리키고 제어판을 누른 다음 네트워크를 두 번 누릅니다.
  5. TCP/IP(홈)-> 네트워크 어댑터를 두 번 누릅니다.
  6. IP 주소 탭의 IP 주소 지정 상자에 IntranetInfo 값에 대해 지정한 값을 입력합니다. 서브넷 마스크 상자에서 레지스트리의 서브넷 마스크에 사용한 값을 입력합니다.
  7. 확인을 누른 다음 다시 확인을 누릅니다. 컴퓨터를 다시 시작하라는 내용의 메시지가 나타나면 컴퓨터를 다시 시작합니다.
  8. 컴퓨터가 다시 시작된 후 1분동안 기다립니다.
  9. 각 클라이언트에서 시작을 누르고, 실행을 누르고, winipcfg를 입력한 다음 확인을 누릅니다.
  10. 모두 해제를 누른 다음 모두 갱신을 누릅니다.
앞에서 설명한 방법으로 이러한 특정 ICS 설정을 변경할 수는 있지만 ICS에 대한 IP 설정을 기본 구성과 다르게 사용자 지정하는 것은 Microsoft 고객 기술지원부에서 지원하지 않습니다.
[출처 : http://support.microsoft.com/?scid=kb%3Bko%3B230148&x=9&y=12]
Posted by 구차니
Microsoft/Windows2009. 1. 30. 17:06
WinXP에 IIS 설치하는 문제는 다른 곳에서 검색을 해보시기 바라며
WinXP에 설치된 IIS에서 SMTP를 설정하는 법은 다음과 같다.

step 1. IIS상의 SMTP 등록 정보를 열면, 엑세스 탭에 릴레이 제한 항목을 찾는다.


step 2. 릴레이 제한에 들어 오면, 허용할 릴레이 목록을 추가 해준다.
           예를 들어 공유기 내부의 네트워크에서 모든 사용자에게 허용을 하고 싶다면,
           현재 허용 목록에 추가를 한다.


step 3. 추가시에는 아래의 그림과 같이 단일 컴퓨터, 그룹(ip class 기반), 도메인이 가능하며, 공유기 상황이므로
          컴퓨터 그룹을 선택하여 현재 사용하고 있는 아이피와 서브넷을 적용해준다.
          서브넷 주소의 경우 일반적으로 xxx.xxx.xxx.000 아래의 254개를 묶어 사용하므로
          마지막 자리는 임의로 넣어도 상관없다. 대신 254개를 묶기 위해 서브넷 마스크에 255.255.255.0을 넣어 준다.


step 4. outlook express에서 (물론 IIS를 설치한 컴퓨터와 다른 곳에서) 설정을 해준다.
          도메인을 설정하지 않았으므로, 아이피로 직접 연결해준다.


주의 : 일반 초고속 인터넷의 IP로 대형 포털에 메일 보내기를 시도 하면 실패를 한다.
This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

       받는사람메일주소

---------- 첨부 파일 -------------------------------
Reporting-MTA: dns;SMTP서버이름
Received-From-MTA: dns;보낸컴퓨터이름
Arrival-Date: Fri, 30 Jan 2009 16:53:18 +0900

Final-Recipient: rfc822;받는사람메일주소
Action: failed
Status: 5.7.1
Diagnostic-Code: smtp;554 5.7.1 DCXR xxx.xxx.xxx.xxx: Your IP address is blocked by anti-spam system.


Posted by 구차니