Video Screencast Help
Search Video Help Close Back
to help

the 8.0 MR1 release vs the prev 8.0 causes an error with file exist tests

Created: 01 May 2012 | 9 comments
ocsscott69's picture
0 0 Votes
Login to vote

Has anyone seen this.

if file exists %TESTVAR%\test.txt

 

in the new version it never passes the test.  I compile the code in the old 8.0 with no changes it works.  even in the debugger I see the variable holding the correct value but failing the test in MR1.

actual code in attached jpg

any ideas?

Discussion Filed Under:

Comments 9 CommentsJump to latest comment

EdT's picture

From the JPG I conclude you are referring to the Wisescript editor and not the Windows Installer editor.

However, the lack of detail in the code sample supplied and the absence of any information on the operating system you are testing on, makes it impossible to determine whether your error is a bug, or a failure to appreciate that the Wisescript MR1 release includes some 64 bit functionality and therefore if you are working on Win 7 64 bit, the path you are checking needs to be explicitly 32 bit or explicitly 64 bit.

After all, if your file is somewhere under Program Files, but your code is looking under Program Files (x86) then of course it will not find the file.  With the 8.0 Wisescript Editor, it could not access Program Files, so all references would be to Program Files (x86) on a 64 bit system regardless of any other factors.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

0
Login to vote
  • Actions
ocsscott69's picture

Thanbks ed sorry for the lack of detail.  The OS is win7 32 bit.  the file can be anywhere, but for testing I added it to c:\test.

 

I used the search function which found the file and had the correct path.  But the file exist didnt work.  if I recompile with 8.0 NON mr1 it works, recompile under mr1 it fails.

0
Login to vote
  • Actions
EdT's picture

I suspect this may be a bug, which is now highly unlikely to be fixed. Just one further thought - are you ensuring that the check is correct from a case perspective?  I don't have MR1 installed anywhere, but maybe the check is now case sensitive.  Let me know what you find and I will feed this back into the system.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

0
Login to vote
  • Actions
ocsscott69's picture

case is fine.  but to test I used the same pc to run it against and compiled it with 8 and it works then recompiles with MR1 and its broke.  I did this several times.  Breaking the fileexist test is a majorr Bug id say 90% of our scripts use it.

Are they no longer doing bug fixes?  will the adminstudio version be updated and available do you know?

 

0
Login to vote
  • Actions
EdT's picture

I can only ask.  

If you have maintenance on WPS, I would recommend that you log this issue with Tech Support as it then gets properly documented.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

0
Login to vote
  • Actions
ocsscott69's picture

we are trying to figure that out.  we thought be bought 1 more year of support lst year but they say we didnt.. we are about to give up on them.  They never did mush to support us or do bug fixes before they sold out.

0
Login to vote
  • Actions
EdT's picture

I will let you know if I hear anything on this one, but a workaround you could consider, is to call a bit of VBScript to do the FileExist test. That way you can at least compile the code with the newer version if you need the 64 bit functionality. You could write this as an "include" script which could be called in your other projects.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

0
Login to vote
  • Actions
ocsscott69's picture

now Im scared what else they broke.  not sure if 64 bit support is worth it.

 

thanks

0
Login to vote
  • Actions
EdT's picture

Fortunately, you continue to have the option of using the 8.0 release. Stick it in a VM with a local SQL Express database if your main environment has already been updated, so you can use whichever compiler best suits your needs.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

0
Login to vote
  • Actions