문제

CLI의 Windows XP/Vista 배치 스크립트를 사용하여 호출 할 수있는 간단한 확인/경고 상자를 실현하고 싶습니다.

표준 경고 상자가 차단되는 것처럼 보입니다. 즉, 전체 배치 스크립트가 내가 원하는 것이 아닌 경고 창 호출시 중지됩니다.

코딩 해야하는 경우 예제 또는 문서를 제공하십시오. 언어는 가상 머신을 필요로하지 않고 편집 할 수있는 모든 것이 될 수 있습니다.

도움이 되었습니까?

해결책

start MessageBox.vbs

...어디 MessageBox.vbs Msgbox 함수에 대한 호출이 포함되어 있습니다.

다른 팁

당신은 사용할 수 있습니다 msg 도구:

Send a message to a user.

MSG {username | sessionname | sessionid | @filename | *}
    [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]

  username            Identifies the specified username.
  sessionname         The name of the session.
  sessionid           The ID of the session.
  @filename           Identifies a file containing a list of usernames,
                      sessionnames, and sessionids to send the message to.
  *                   Send message to all sessions on specified server.
  /SERVER:servername  server to contact (default is current).
  /TIME:seconds       Time delay to wait for receiver to acknowledge msg.
  /V                  Display information about actions being performed.
  /W                  Wait for response from user, useful with /V.
  message             Message to send.  If none specified, prompts for it
                      or reads from stdin.

호출

msg * Some text

차단하지 않습니다. 또한 필요한 경우 정해진 시간 후에 메시지 상자를 다시 닫을 수있는 능력도 있습니다.

그러나 참고로, 당신은 실제로 그런 것들을 사용해서는 안됩니다. 독백 (정확히 확인 버튼이있는 메시지 상자와 같은)은 정보 효율이 0 %입니다 (참조 : Jef Raskin : 인간적인 인터페이스. 섹션 4–3 : 인터페이스 효율의 측정 또는 Aza Raskin : 독백 상자 및 투명한 메시지 또는 Aza Raskin : 정량적으로 설계를 중단 할시기를 알고 있습니다).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top