 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
Brent
Joined: 20 Feb 2002 Posts: 57
|
|
Upgrade bug, 3.4.10 (FileExists) |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7966
|
|
Re: Upgrade bug, 3.4.10 (FileExists) |
|
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 |
|
 |
Brent
Joined: 20 Feb 2002 Posts: 57
|
|
Re: Upgrade bug, 3.4.10 (FileExists) |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7966
|
|
Re: Upgrade bug, 3.4.10 (FileExists) |
|
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 |
|
 |
Brent
Joined: 20 Feb 2002 Posts: 57
|
|
Re: Upgrade bug, 3.4.10 (FileExists) |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7966
|
|
Re: Upgrade bug, 3.4.10 (FileExists) |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7966
|
|
Re: Upgrade bug, 3.4.10 (FileExists) |
|
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 |
|
 |
Brent
Joined: 20 Feb 2002 Posts: 57
|
|
Re: Upgrade bug, 3.4.10 (FileExists) |
|
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 |
|
 |
|
|
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
|
|
|