SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
DirEx not working with french accent in folder

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
DirEx not working with french accent in folder
Author Message
Pierre Dupuis



Joined: 22 Aug 2000
Posts: 85

Post DirEx not working with french accent in folder Reply with quote

Hi,

DirEx command does not work whith a accent in folder name.

This Command:
DirEx "D:\StagingArea\SpmComments\OPER\Beaupré\*.DOC",filelist

Return:
D:\StagingArea\SpmComments\OPER\Beaupré - April 10 to April 16, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré - April 17 to April 23, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré - April 24 to April 30, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré - April 3 to April 9, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré - March 27 to April 2, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré - May 1 to May 7, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré - May 15 to May 21, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré - May 8 to May 14, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré - template.doc

Instead of:
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - April 10 to April 16, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - April 17 to April 23, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - April 24 to April 30, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - April 3 to April 9, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - March 27 to April 2, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - May 1 to May 7, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - May 15 to May 21, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - May 8 to May 14, 2006.doc,
D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - template.doc

Please could you fix?
Thanks.

Tue May 23, 2006 11:40 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: DirEx not working with french accent in folder Reply with quote

I will try to reproduce that. In a mean time can you tell us if Dir is returning correct file names?

Dir "D:\StagingArea\SpmComments\OPER\Beaupré\*.DOC",filelist

Also please try the following method

Dim file_name, string
Dim found, boolean
// Start file search
FileFindFirst( "D:\StagingArea\SpmComments\OPER\Beaupré\*.DOC", file_name, found )
LoopWhile( found, ENDLOOP )
// File found, do something with the file here
Concat( "D:\StagingArea\SpmComments\OPER\Beaupré\*.DOC", file_name, file_name )
MessageBox( file_name )
FileFindNext( file_name, found )
ENDLOOP:

: Hi,

: DirEx command does not work whith a accent in folder name.

: This Command: DirEx
: "D:\StagingArea\SpmComments\OPER\Beaupré\*.DOC",filelist

: Return: D:\StagingArea\SpmComments\OPER\Beaupré - April 10 to April 16,
: 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré - April 17 to April 23, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré - April 24 to April 30, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré - April 3 to April 9, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré - March 27 to April 2, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré - May 1 to May 7, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré - May 15 to May 21, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré - May 8 to May 14, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré - template.doc

: Instead of: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - April 10 to
: April 16, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - April 17 to April 23,
: 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - April 24 to April 30,
: 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - April 3 to April 9,
: 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - March 27 to April 2,
: 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - May 1 to May 7, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - May 15 to May 21, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - May 8 to May 14, 2006.doc,
: D:\StagingArea\SpmComments\OPER\Beaupré\Beaupré - template.doc

: Please could you fix?
: Thanks.

Tue May 23, 2006 12:15 pm View user's profile Send private message
Pierre Dupuis



Joined: 22 Aug 2000
Posts: 85

Post Re: DirEx not working with french accent in folder Reply with quote

Dir command works fine.

I changed my code to use FileFindFirst instead.

Thanks.

Wed May 24, 2006 7:19 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.