CL_GUI_FRONTEND_SERVICES 的应用

 

*音乐播放器 IF sy-batch IS INITIAL. CALL METHOD cl_gui_frontend_services=>execute EXPORTING application = 'mplay32.exe' parameter = '/play /close c:/windows/media/start.wav' EXCEPTIONS cntl_error = 1 error_no_gui = 2 bad_parameter = 3 file_not_found = 4 path_not_found = 5 file_extension_unknown = 6 error_execute_failed = 7 synchronous_failed = 8 not_supported_by_gui = 9 OTHERS = 10. IF sy-subrc <> 0. MESSAGE ' Do not worry about it...' TYPE 'I'. ENDIF. ENDIF.

 

The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:

  • File functions
  • Directory functions
  • Registry
  • Environment
  • Write to / read from clipboard
  • Upload / download files
  • Execute programs / open documents
  • Query functions, such as Windows directory, Windows version, and so on
  • Standard dialogs (open, save, directory selection)

转一篇cl_gui_frontend_services应用的文章http://mmccking.itpub.net/post/33129/398631

你可能感兴趣的:(CL_GUI_FRONTEND_SERVICES 的应用)