home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
h2d130.zip
/
BIN
/
h2dwork.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1996-09-17
|
1KB
|
47 lines
/***********************************************
H2D v1.1
Working Directory Creation Script
Copyright (c) 1996 xTech Ltd.
************************************************/
'@echo off'
Call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
Call SysLoadFuncs
call SysCls
call SysCurState off
say
say " Do you want to create appropriate subdirectories"
say " and redirection file in directory" directory() "? (Y/N)"
do forever
key = translate(SysGetKey('NOECHO'));
if (key = 'Y') | (key = 'N') | (key = X2C(27)) then leave
end
if key <> 'Y' then exit
parse source . . home
home = left(home,lastpos('\',home)-1) /* Strip "\<cmd-name>" */
home = left(home,lastpos('\',home)-1) /* Strip "\BIN" */
say " creating directory structure..."
'mkdir DEF H SRC'
if rc <> 0 then do
say "Error making subdirectories"
exit 1
end
say " creating appropriate redirection file..."
'echo>h2d.red *.def = .\def'
'echo>>h2d.red *.mod = .\src'
'echo>>h2d.red *.h = .\h'
'echo>>h2d.red *.h2d = .'
say ''
say ' DONE'
say ''
exit