| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | REXX Question |
Hello !
I need to move some files on creation to another subdirectory and am having
trouble with REXX. SysMoveObject returns an error code of 0 every time. I've
tried everything I can think of...code follows:
--- Start here ---
/* code snipped */
call syssleep 15
if stream('G:\satelite\newsgrp\PCUSENET.*','c','query exist') '' then
do
LastProcOfUseNet = currtime
call SysFileTree 'G:\satelite\newsgrp\PCUSENET.*' , 'UseNetFiles' , 'FO'
do i = 1 to UseNetFiles.0
filename.i = substr(UseNetFiles.i,21,12)
newloc.i = 'G:\satelite\newsgrp\outbound\' || filename.i
status = SysMoveObject(UseNetFiles.i, newloc.i)
if status = 0 then
do
call beep 500, 100
end
end
end
--- End code ---
Any help would be appreciated...even an example of code that works :)
Nicky
--- Squish/386 v1.11
* Origin: Emerald Coast/2 * Navarre,FL * (904)939-5242 * (1:366/47)* Origin: Emerald Coast/2 * Navarre,FL * (904)939-5242 * (1:366/47) SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 366/47 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.