home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cenvi23.zip
/
BCKGRND.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-10-03
|
841b
|
30 lines
EXTPROC CEnvi2
//*****************************************
//*** 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")
}