[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] Can't move all files from folder



are they files that your program created?  And if so, are they closed?
You can't move a file you're still writing to because the system shows
SQRUSER as having control of a open file.

Also note that you can't move the log file or the .lis file
automatically created, because those aren't closed until the program
finishes.  Maybe there's actually a way to do that, but if I've had to
do something where I want to delete the file (or move it, in your case)
then I always open a file for writing and close it before I have to do
anything with it.

What system is this on?  



-----Original Message-----
From: sqr-users-bounces+bstone=fastenal.com@sqrug.org
[mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of
Karen Leary
Sent: Monday, November 13, 2006 12:54 PM
To: sqr-users@sqrug.org
Subject: [sqr-users] Can't move all files from folder

I am trying to move some files from one folder to another when finished
processing.

I am using the following syntax which only moves one of the files
instead of all of them - any ideas why???


Let $move = getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* '
|| $ArchivePath || 'archive\'

call system using $move #status wait


Each time I run the program it will move one file.  If I run the same
command from a dos prompt it does move all the files.



Thank you,
Karen



_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users