What is the limitation for length here    Defining Path/Dir etc....  I recall a 
limit that the string can only be so long.

Perhaps mapping this dir to a drive letter and then only searching that drive?  
I once ran in to the limit once but forgot it length.  


At least set var vfolder = ' g:\edisoft\sales\home depot westcoast\recv\'   an 
idea.


Sincerely,
Paul 

Ps. Just think about the years and wealth of knowledge here.  Should count it 
up one day.  Perhaps as a "double" I hope verses "integer".






-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of MikeB
Sent: Monday, August 03, 2009 1:16 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: filename characters

Bob,

  RBase should observe all the same rules as the filesystem allows.  Try the 
same commands in a DOS box and see if the results are the same...


----- Original Message ----- 
From: <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, August 03, 2009 12:58 PM
Subject: [RBASE-L] - Re: filename characters




I agree. The problem that has mysterously arose is that I have been naming 
just the

8 digit filename files by adding text to the end using the ? placeholder 
character.



Now for some reason, the placeholder is not acting consistently in that

Dir ABCD???.??? returns all files such as ABCDEFGHIJK.xxx even though

there are many more characters than designated by the (3-???) placeholders.



What seems to be happening is that less than a total of 8 characters work.

I.E. DIR ABCD??.??? will retrieve only filenames with 6 characters starting

with ABCD.



Will see what the shortname command does, although I am still at a loss

for why it has been working and then quit. Even more so, why it quit over 
the weekend

when no one was on the system at all!



Below are files that had been renamed by the existing program without error 
Friday,

but stopped on Saturday. I have literally hundreds of files in archive that 
this has worked

on over the past several months. But it sure is not working now??? I am sure 
there

is an explanation, I just cannot find it.





Volume in drive g has no label.
Directory of g:\edisoft\sales\home depot westcoast\recv\

RC122A~1 001 9652 7-31-09 10:33a RC090731sent10_37.001
RC5CD9~1 001 2248 7-31-09 10:03a RC090731sent10_6.001
RC1A29~1 001 6652 7-31-09 11:33a RC090731sent11_39.001
RC0907~1 002 4228 7-31-09 11:03a RC090731sent11_40.002
RC0907~1 003 270 7-31-09 3:35p RC090731sent11_40.003
RC0907~1 004 3000 7-31-09 3:35p RC090731sent11_40.004
RC0907~1 008 1354 7-31-09 2:05p RC090731sent11_40.008
RC6CD7~1 001 4145 7-31-09 11:03a RC090731sent11_8.001
RC160E~1 001 1648 7-31-09 12:34p RC090731sent12_40.001
RC6CD9~1 001 1510 7-31-09 12:04p RC090731sent12_9.001
RC1A0B~1 001 5028 7-31-09 1:04p RC090731sent13_11.001
RC121A~1 001 270 7-31-09 2:05p RC090731sent14_13.001
RC0907~4 002 270 7-31-09 2:05p RC090731sent14_13.002
RC1619~1 001 2157 7-31-09 3:05p RC090731sent15_14.001
RC162B~1 002 3180 7-31-09 3:35p RC090731sent15_44.002
RC1E1F~1 001 1007 7-31-09 5:06p RC090731sent17_16.001
RC1E2F~1 002 3547 7-31-09 5:06p RC090731sent17_16.002
RC1E1C~1 001 294 7-31-09 6:36p RC090731sent18_46.001










----- Original Message ----- 
From: "MikeB" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, August 3, 2009 11:35:25 AM GMT -06:00 US/Canada Central
Subject: [RBASE-L] - Re: filename characters

Also, the ? character is the placeholder for a character, so:

Dir abcde??.???

is not the same as

Dir abcde?.???



----- Original Message ----- 
From: <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, August 03, 2009 10:48 AM
Subject: [RBASE-L] - Re: filename characters




Does anyone have insight on the following results? I am at a loss.....



R>dir checka??.???



Volume in drive G has no label.
Directory of G:\RBTI\Edi_V8\

CheckAWM txt 543 1-23-09 9:51a CheckAWM.txt
CHECKA~1 TXT 480 1-23-09 9:52a CheckAlex.txt
CHECKA~2 TXT 543 1-23-09 9:51a checkalex111.txt
3 File(s) 1566 bytes
115894489088 bytes free


R>dir checkal?.???
File not found


The second dir should have returned the last two files above, but did not.



The first dir should not have returned the last two files but did.



Can someone confirm like behaviour on thier system or is something awry on
my

install. As I stated before, this worked fine for many months, but I would
not think a

database corruption would effect a file handling command.


Thanks,

-Bob


----- Original Message ----- 
From: "ttc inc" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, August 3, 2009 9:19:08 AM GMT -06:00 US/Canada Central
Subject: [RBASE-L] - filename characters





Are there any settings that effect filename wildcard characters? (Turbo V8)

(Other than the set single command)



I have a program that has ran fine for many months. It runs 24 hours 7 days
per week via a form timer.

This weekend it stopped running.



The code that quit working is :



--Rename the Merchant EDI files so that users can discern if they have
--been sent via this program and that this program will not reprocess same
files at
--a later time. Include a time stamp to prevent duplicate file names



SET VAR voldfile TEXT = ('G:\Edisoft\Sales\HOME DEPOT
WESTCOAST\recv\RC??????.???')



SET VAR vnewfile TEXT = ('????????sent' + (CTXT(IHR(.#TIME)) ) + '_' +
(CTXT(IMIN(.#TIME)) ) + '.???' )



RENAME .voldfile &vnewfile

(The . and & are intentional and I believe correct. In any case it worked
before and I have tried various combinations this morning, without success)



This code has worked without issue for many months. I have several hundred
archive files that prove the rename command worked in the past. Now it does
not.


All file names start out such as RC20090801.001, RC20090801.002,
RC20090801.003 etc.

The rename command should rename them to RC20090801sent_0824.001,
RC20090801sent_0824.002,

RC20090801sent_0825.003 and has done so in the past for hundreds of files.



This weekend it stopped working. The voldfile RC??????.??? now picks up all
files that start with RC,

even if the filename has more that 8 characters. This did not use to happen.
I.E. previously the above voldfile

would not include any RC20090801sent_0824.001 files as they were longer than
8 characters. It seems

like the single character wild card is not working now for some reason. I
have checked the single character wildcard and it is set properly.



I might find some other work around, but I need to find out why it worked
before and not now.



Any thoughts???



Thanks,

-Bob

created


Reply via email to