Skip to content

Commit

Permalink
・v1.03
Browse files Browse the repository at this point in the history
  • Loading branch information
opa committed Aug 16, 2010
1 parent 338595e commit dc5c9e7
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 33 deletions.
1 change: 0 additions & 1 deletion wrapexec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,6 @@ void do_help()
" use_path\n"
" gui\n"
" wait\n"
" hide\n"
" maximize\n"
" minimize\n"
);
Expand Down
4 changes: 1 addition & 3 deletions wrapexec.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
; wrapexec 設定ファイルの雛形
;
; Copyright (c) 2009 by opa
; Copyright (c) 2009,2010 by opa

[option]
help
;arg = ${ARG}
;chdir =
;import_env = LANG
;export_env = MY_ININAME
;verbose = no
;internal = no
;use_path = no
;gui = no
;wait = no
;hide = no
;maximize = yes
;minimize = yes
;use_path
Expand Down
2 changes: 1 addition & 1 deletion wrapexec.rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#define VERNUM 1,03,0,0
#define VERSTR "1.03"
#define CREDIT2009 "Copyright (c) 2009 by opa"
#define CREDIT2009 "Copyright (c) 2009,2010 by opa"
#define PGM "wrapexec"
#define DESCRIPTION "Wrapper of Execute"

Expand Down
77 changes: 52 additions & 25 deletions wrapexec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
�o�b�`�t�@�C���ł��邱�Ƃ��ӎ����āA�ucall useful_script�v�Ȃǂ�
�L�q����K�v������܂��B(MS-DOS���ォ��A�ȂƑ����A������ׂ��d�l)
���̂悤�ȏꍇ���Awrapexec ����� useful_script.bat ���ĂԂ悤��
����Ή������܂��Bwrapexec �͒ʏ��exe�t�@�C���ł��̂ŁA�o�b�`�t�@�C��
����Ή������܂��Bwrapexec �͕��ʂ�exe�t�@�C���ł��̂ŁA�o�b�`�t�@�C��
������s���ꂽ�ꍇ�ł��A�Ăяo�����̃o�b�`�t�@�C���ɐ��䂪�߂�܂��B

CUI�Ɋ���Ă���l�́AProgram Files �ȉ��ɃC���X�g�[�����ꂽ�G�f�B�^��
Expand All @@ -46,7 +46,8 @@

���s�������v���O�������A/bin �ɂ���̂��A/usr/bin �ɂ���̂��A����Ƃ�
/usr/local/bin �͂��܂� /opt/theSoftware/bin �ɂ���̂� �Ƃ�����
���� Windows �ł͔�r�I�������ɂ����̂ł����A����ł��‹���^�p���@
���� Windows �ł͔�r�I�������ɂ����̂ł���(�Ȃ��Ȃ�A�����̂�����
�ł��Ȃ��A/Program Files��/Windows�ɂ��邩��)�A����ł��‹���^�p���@
�ɂ���ẮA���s�������v���O�����̎��̂��ǂ��ɂ���̂�������ł��Ȃ�
�ꍇ������܂��B�Ⴆ�΁A���s����}�V���ɂ���āAperl.exe �� cc.exe ��
�ꏊ���قȂ錻��ȂǁB
Expand Down Expand Up @@ -87,9 +88,6 @@
���Ńo�b�`�t�@�C�������s����܂��̂ŁA��L�̂悤�ȕ���p�͂���܂���B
(�t�ɁA���̂悤�ȕ���p��O��Ƃ����o�b�`�t�@�C���́A�{�v���O������
��Ď��s����ƁA���Ƃ��ƈӐ}���ꂽ�悤�ɂ͓��삵�܂���)
�Ȃ��A�f�t�H���g�̏�Ԃł́A�‹��ϐ� PATHEXT= �ɂ����� .exe �� .bat
������ɋL�q����Ă��邽�߁A�������O�̃o�b�`�t�@�C�������݂�����
���Ă��Aexe �̕������s����܂��B(�����I�Ɋg���q���w�肵���ꍇ������)

���̑��̃X�N���v�g�ɑ΂��郉�b�p�Ƃ��Ďg���܂��B�X�N���v�g���Ɠ���
���O�Ŗ{�v���O�������R�s�[���āA�Ώۂ̃X�N���v�g����̃C���^�v���^��
Expand All @@ -104,7 +102,7 @@

�����̌��ʂƂ��āA�R�}���h�v�����v�g��CUI�̃����`���ɂȂ�܂��B
�p�X�̒ʂ����f�B���N�g���ɁA�悭�g���A�v���P�[�V���������ꂼ�ꃉ�b�v
�����{�v���O���������Ă����΁A�ǂ��ɂ��Ă��v���O������������
�����{�v���O���������Ă����΁A�v���O���������^�C�v�������
���̂͂��ꂼ��ǂ����ʂ̂Ƃ���ɂ���v���O�������ꔭ�Ŏ��s���邱�Ƃ�
�ł��܂��B�X�^�[�g���j���[�� Program Files �̒���T���������A
�l�b�g���[�N�̃h���C�u�������Q�ĂĒ��ׂ��肷��K�v�͂���܂���B
Expand Down Expand Up @@ -136,7 +134,7 @@

���s�t�@�C���̊g���q�� .ini �ɒu���ς����t�@�C����ݒ�t�@�C���Ƃ���
�ǂݍ��݂܂��B
���̃t�@�C���́AUNICODE��UTF-8�ō쐬����K�v������܂��B
���̃t�@�C���́AUTF-8�ō쐬����K�v������܂��B

������ Windows �ł悭����AINI�t�@�C���Ɏ������̂ł��B
[section] �ŃZ�N�V������錾���A����ȍ~�ɂ��̓��e���L�q���܂��B
Expand Down Expand Up @@ -173,7 +171,7 @@
���� [option] [exec] �Z�N�V�����̑g�ɂ‚��Ă����L���Ȃ̂ŁA������
[option] [exec] �Z�N�V�����̑g�ɋ��ʂŗ^�������I�v�V����������Ƃ��́A
���� [global] �Z�N�V�����ŋL�q���邱�ƂŁA����ȍ~�̑S�Ă� [option]
�Z�N�V�����Ō•ʂɎw�肵���̂Ɠ������ƂɂȂ�܂��B
�Z�N�V�����ł��ꂼ��w�肵���̂Ɠ������ƂɂȂ�܂��B

[end] �Z�N�V����
�����Őݒ�t�@�C���̓ǂݍ��݂��I���A�������ɉ���������Ă��Ă�
Expand Down Expand Up @@ -225,18 +223,14 @@
�}�N��(${MY_DIR}��)���g�p�ł��܂��B

import_env (�����l:��`�Ȃ�)
�����ɕ�������Ƃ�܂��B���̃I�v�V�������g���ƁA�‹��ϐ�����q��
�}�N���Ƃ��Ďg�����Ƃ��ł��܂��B����ɂ��A�‹��ϐ��̓��e�ɂ����
�{�v���O����������s�����v���O������؂�ւ�����A�I�v�V������؂�
�ւ�����Ƃ��������Ƃ��ł��܂��B
���̃I�v�V�����͕����Žw��ł��܂��B
���̃I�v�V�����͔p�~����܂����B�g�p����ƌx����\������������܂��B

export_env (�����l:��`�Ȃ�)
�����ɕ�������Ƃ�܂��B���̃I�v�V�������g���ƁA��q�̃}�N���̒l��
�‹��ϐ��ɐݒ肵����ŁA�v���O���������s�ł��܂��B�‹��ϐ��́A�}�N����
���O�̓��� "WRAPEXEC_" ���‚������O�ɂȂ�܂��B�Ⴆ�΃}�N�� ${ARG} ��
export_env=ARG �Ƃ��ăG�N�X�|�[�g����ƁA�{�v���O�����֓n���ꂽ������
�‹��ϐ� WRAPEXEC_ARG �ɐݒ肳��܂��B
�G�N�X�|�[�g����ɂ� export_env=ARG �Ǝw�肵�܂��B����Ɩ{�v���O������
n���ꂽ�������A�‹��ϐ� WRAPEXEC_ARG �ɐݒ肳��܂��B
���̃I�v�V�����͕����Žw��ł��܂��B

verbose (�����l:false)
Expand All @@ -250,16 +244,16 @@
���s�������ꍇ�A������ cmd.exe �̓����R�}���h�ł��̂ŁA�t�@�C���Ƃ���
echo.exe �� set.exe ������킯�ł͂���܂���B
�{�v���O�����͒ʏ�A���s���悤�Ƃ���t�@�C�������ۂɑ��݂��邱�Ƃ�
�m�F���Ă�����s���܂��̂ŁA���̂܂܂ł� echo �� set �����s���܂���B
�m�F���Ă�����s���܂��̂ŁA���̂܂܂ł� echo �� set �����s�ł��܂���B
(�v���O���������‚���Ȃ��|�̃G���[���b�Z�[�W���o�͂���܂�)
���̂悤�ȏꍇ�A���̃I�v�V�������w�肷��ƁA�t�@�C���̑��݃`�F�b�N��
�ȗ����Ď��s���܂��B

gui (�����l:false)
�����ɐ^�U�l���Ƃ�܂��B�l���^�̏ꍇ�A���s�����v���O������
Windows �� GUI �̃v���O�����Ƃ݂Ȃ���Acmd.exe �� start �R�}���h�ɂ��
ʃE�B���h�E�ŋN������܂��B�܂��A���L�� wait �I�v�V�������^�łȂ�����
���s���ꂽ�v���O�����̏I����҂����A�{�v���O�����͂����I�����܂��B
Windows �� GUI �̃v���O�����Ƃ݂Ȃ���A���L�� wait �I�v�V�������^��
Ȃ�����A���s���ꂽ�v���O�����̏I����҂����A�{�v���O������
�����I�����܂��B

wait (�����l:false)
�����ɐ^�U�l���Ƃ�܂��B�{�I�v�V�����́A�O�q�̃I�v�V���� gui ���^��
Expand All @@ -286,8 +280,7 @@
�T���܂���B�܂��������g�����‚��Ă��A�X�L�b�v���Ď���T���܂��B

hide (�����l:false)
�����Ŏ��s���� start �R�}���h�ɁA/b �I�v�V������t�����܂��B
��������ɂ���ĉ����ς��̂��悭�킩��܂���B
�g�p���Ă��܂���B�w�肵�Ă������N����܂���B


�E�}�N��
Expand Down Expand Up @@ -404,8 +397,28 @@
�e���|�����f�B���N�g���̂���h���C�u�B
�� : C:

��L�̑��A�I�v�V���� import_env ��p���邱�ƂŁA�C�ӂ̊‹��ϐ���
�}�N���W�J�Ɏg�p���邱�Ƃ��ł��܂��B
TARGET_NAME
�{�v���O����������s�����v���O�����̃t���p�X�t�@�C�����B
�� : C:\WINDOWS\system32\cmd.exe

TARGET_DIR (�ʖ� : TARGET)
�{�v���O����������s�����v���O�����̂���f�B���N�g���B
�� : C:\WINDOWS\system32\

TARGET_DRIVE
�{�v���O����������s�����v���O�����̂���h���C�u�B
�� : C:

CURRENT_DIR (�ʖ� : CURRENT)
�{�v���O���������s���ꂽ���_�ł̃J�����g�f�B���N�g���B
�� : D:\home\user1\

CURRENT_DRIVE
�{�v���O���������s���ꂽ���_�ł̃J�����g�h���C�u�B
�� : D:

��L�̑��A�‹��ϐ����}�N���W�J�Ɏg�p���邱�Ƃ��ł��܂��B
${COMSPEC} �ȂǁB

�X�̊‹��ł̋�̓I�Ȓl�́A�I�v�V���� verbose ��^�Ɛݒ肷���
�m�F���邱�Ƃ��ł��܂��B
Expand Down Expand Up @@ -435,7 +448,6 @@
Program Files �̉���ɂ��� MyFavoriteEditor.exe ���ő剻��ԂŎ��s�����
|
|[option]
|gui
|maximize
|[exec]
|${PROGRAM}folder\to\program\MyFavoriteEditor.exe
Expand Down Expand Up @@ -524,7 +536,7 @@

�E���쌠�\������у��C�Z���X

Copyright (c) 2009 by opa
Copyright (c) 2009,2010 by opa
All rights reserved.

�\�[�X�R�[�h�`�����o�C�i���`�����A�ύX���邩���Ȃ������킸�A�ȉ���
Expand Down Expand Up @@ -566,6 +578,21 @@
�E����āA�又�����R�����g�A�E�g���Ă��܂��Ă����̂��C���B
�@(2010/03/11 version 1.02)

�E�}�N���̓W�J���ʂ�\�ߑS��ޗp�ӂ���̂ł͂Ȃ��A�K�v�Ȃ��̂̂ݓs�x
�@�W�J����悤�ɂ����B����ɂ�荂�������܂����B
�ESHGetSpecialFolderLocation() �ł͂Ȃ� SHGetSpecialFolderPath() ��
�@�g���悤�ɂ����B
�E�I�v�V���� import_env �Ŗ����I�Ɋ‹��ϐ�����荞�܂Ȃ��Ƃ��悢
�@�悤�ɂ����B�����Ă��̃I�v�V������p�~�����B
�E�I�v�V���� hide ��p�~�B
�E�N������STARTUPINFO���擾���āA�Ⴆ�΍ŏ����I�v�V�����‚��ŋN��
�@���ꂽ�Ƃ��́A�^�[�Q�b�g���ŏ����I�v�V�����‚��ŋN������悤�ɂ����B
�Emingw32�T�|�[�g���~�߂��B
�Ewrapexecw�ɂ����Ă͕W���o�͂��g�p�ł��Ȃ��̂ŁA���b�Z�[�W�{�b�N�X��
�@�\�����s���悤�ɂ����B
�E�}�N�� TARGET_*������� CURRENT_*����lj��B
�E�A�C�R���̔���������ѕύX�B(2010/08/17 version 1.03)


--------
����E����
Expand Down
Binary file modified wrapexec1.ico
Binary file not shown.
Binary file modified wrapexec2.ico
Binary file not shown.
Binary file modified wrapexec3.ico
Binary file not shown.
4 changes: 1 addition & 3 deletions wrapexecw.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
; wrapexec 設定ファイルの雛形
;
; Copyright (c) 2009 by opa
; Copyright (c) 2009,2010 by opa

[option]
help
;arg = ${ARG}
;chdir =
;import_env = LANG
;export_env = MY_ININAME
;verbose = no
;internal = no
;use_path = no
;gui = no
;wait = no
;hide = no
;maximize = yes
;minimize = yes
;use_path
Expand Down

0 comments on commit dc5c9e7

Please sign in to comment.