SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Upgrade bug, 3.4.10 (FileExists)

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Upgrade bug, 3.4.10 (FileExists)
Author Message
Brent



Joined: 20 Feb 2002
Posts: 57

Post Upgrade bug, 3.4.10 (FileExists) Reply with quote

After upgrading to 3.4.10 on our Test server,
I have noticed that FileExists is not working.
Here is my code. I've put a file into the root
directory (C:\) and have not been able to get the
true part of the code to work.
Example: ONEDEFER_CDATA is the file I'm looking for.
I put the file in the C:\ directory and type in:
C:\\ONEDEFER_CDATA as the file name, and the false
code is executed. Typing in C:\ONEDEFER_CDATA
does not work either.

InputBox "Enter Full Path and file name", "EDIT", move_file_complete_name
FileExists move_file_complete_name file_exist
ChooseCase (file_exist end_case)
Case "True"

concatex move_file_complete_name, " File has been found", message

MessageBox message
CaseElse

concatex move_file_complete_name, " File has not been found", message

MessageBox message
end_case:

Thu Jul 10, 2003 3:26 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Upgrade bug, 3.4.10 (FileExists) Reply with quote

Does your file have any extension?

Line FileExists move_file_complete_name file_exist
shoud be changed to conform to the JAL syntax
either as
FileExists move_file_complete_name, file_exist
or as
FileExists(move_file_complete_name, file_exist)

: After upgrading to 3.4.10 on our Test server,
: I have noticed that FileExists is not working.
: Here is my code. I've put a file into the root
: directory (C:\) and have not been able to get the
: true part of the code to work.
: Example: ONEDEFER_CDATA is the file I'm looking for.
: I put the file in the C:\ directory and type in: C:\\ONEDEFER_CDATA as the
: file name, and the false
: code is executed. Typing in C:\ONEDEFER_CDATA
: does not work either.

: InputBox "Enter Full Path and file name", "EDIT",
: move_file_complete_name
: FileExists move_file_complete_name file_exist
: ChooseCase (file_exist end_case)
: Case "True"

: concatex move_file_complete_name, " File has been found", message

: MessageBox message
: CaseElse

: concatex move_file_complete_name, " File has not been found",
: message

: MessageBox message
: end_case:

Thu Jul 10, 2003 5:48 pm View user's profile Send private message
Brent



Joined: 20 Feb 2002
Posts: 57

Post Re: Upgrade bug, 3.4.10 (FileExists) Reply with quote

The file name in the example does not have an extension.
I loaded this same code onto our production server,
which is still using version 3.4.9, and the FileExists
command found the file I was looking for. I have
tried both of the syntax examples that you listed here,
but neither of them worked.

: Does your file have any extension?

: Line FileExists move_file_complete_name file_exist
: shoud be changed to conform to the JAL syntax
: either as
: FileExists move_file_complete_name, file_exist
: or as
: FileExists(move_file_complete_name, file_exist)

Fri Jul 11, 2003 9:04 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Upgrade bug, 3.4.10 (FileExists) Reply with quote

If a file exists on one server it does not automatically mean it also exists on another server.

Are you positive you have the same file on both servers?

: The file name in the example does not have an extension.
: I loaded this same code onto our production server,
: which is still using version 3.4.9, and the FileExists
: command found the file I was looking for. I have
: tried both of the syntax examples that you listed here,
: but neither of them worked.

Fri Jul 11, 2003 11:03 am View user's profile Send private message
Brent



Joined: 20 Feb 2002
Posts: 57

Post Re: Upgrade bug, 3.4.10 (FileExists) Reply with quote

Yes. I move the file to each server before I attempt
my test.

: If a file exists on one server it does not automatically mean it also exists
: on another server.

: Are you positive you have the same file on both servers?

Fri Jul 11, 2003 11:18 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Upgrade bug, 3.4.10 (FileExists) Reply with quote

I just tested your script and found out where the problem is. Please change

Case "True" to
Case true

Also to make life easier I suggest to replace
InputBox "Enter Full Path and file name", "EDIT", move_file_complete_name
with
InputBox "Enter Full Path and file name", "FILE BROWSE", move_file_complete_name

Then you do not have to type file names you use File Browse dialog to pick them

: After upgrading to 3.4.10 on our Test server,
: I have noticed that FileExists is not working.
: Here is my code. I've put a file into the root
: directory (C:\) and have not been able to get the
: true part of the code to work.
: Example: ONEDEFER_CDATA is the file I'm looking for.
: I put the file in the C:\ directory and type in: C:\\ONEDEFER_CDATA as the
: file name, and the false
: code is executed. Typing in C:\ONEDEFER_CDATA
: does not work either.

: InputBox "Enter Full Path and file name", "EDIT",
: move_file_complete_name
: FileExists move_file_complete_name file_exist
: ChooseCase (file_exist end_case)
: Case "True"

: concatex move_file_complete_name, " File has been found", message

: MessageBox message
: CaseElse

: concatex move_file_complete_name, " File has not been found",
: message

: MessageBox message
: end_case:

Fri Jul 11, 2003 12:12 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Upgrade bug, 3.4.10 (FileExists) Reply with quote

I just tested your script and found out where the problem is. Please change

Case "True" to
Case true

Also to make life easier I suggest to replace
InputBox "Enter Full Path and file name", "EDIT", move_file_complete_name
with
InputBox "Enter Full Path and file name", "FILE BROWSE", move_file_complete_name

Then you do not have to type file names you use File Browse dialog to pick them

: Yes. I move the file to each server before I attempt
: my test.

Fri Jul 11, 2003 12:13 pm View user's profile Send private message
Brent



Joined: 20 Feb 2002
Posts: 57

Post Re: Upgrade bug, 3.4.10 (FileExists) Reply with quote

Yes, that did work. Thank you. Also, thank you for the
tip, it might come in handy sometime.

: I just tested your script and found out where the problem is. Please change

: Case "True" to
: Case true

: Also to make life easier I suggest to replace
: InputBox "Enter Full Path and file name", "EDIT",
: move_file_complete_name
: with
: InputBox "Enter Full Path and file name", "FILE BROWSE",
: move_file_complete_name

: Then you do not have to type file names you use File Browse dialog to pick
: them

Fri Jul 11, 2003 1:23 pm 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.