home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
os2
/
cenv2_19.arj
/
BCKGRND.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-03-08
|
840b
|
30 lines
EXTPROC CEnvi
//*****************************************
//*** Bckgrnd.cmd - Load and display a ***
//*** ver.1 new background file ***
//*****************************************
#include <PMdll.lib>
main(argc,argv)
{
if ( argc != 2 || !strcmp(argv[1],"/?") || !strcmpi(argv[1],"help") )
Instructions();
else {
if ( NULL != (DesktopObject = WinQueryObject("<WP_DESKTOP>")) ) {
sprintf(SetupString,"BACKGROUND=%s;ICONVIEW=NONFLOWED,MINI;",argv[1]);
WinSetObjectData(DesktopObject,SetupString);
}
}
}
Instructions()
{
printf("\n")
printf("Bckgrnd - Change desktop background image\n")
printf("\n")
printf("USAGE: BCKGRND <FileSpec>\n")
printf("WHERE: FileSpec is the name of an image file to make new background\n")
printf("\n")
}