> Retrieve,FileSize corrupts %Dir% path, Zeros in path are replaced with returned File Size
post Oct 9 2007, 05:32 PM
Post #1


Group: Advanced user
Posts: 3
Joined: 18-July 06
From: Radcliff, KY USA
Member No.: 33


There appears to be a bug in 'Retrieve,FileSize' in both WinBuilder 072 and 072a.
Any Zeros in the file path are replaced with the Returned File Size.

I have attached a Zip file with:
1. The original !CheckTools.Script that I was running when I discovered this.
2. A test Script to demonstrate the problem !!Bogus.script
3. The output from !!Bogus.script when run from three different directories and using WinBuilder 072 and 072a.
4. A Readme.txt file that is basically the text that follows.

Using American/English Windows XP SP2 VLA as source CD.
Using both WinBuilder 072 and 072a
Discovered while building [nativeEx_barebone] project.
Script: Projects\nativeEx_barebone\Basic\!WBManager\!CheckTools.Script
Log showed Failure: Trying to WebGet file 7za.exe to Obviously incorrect folder.

Check Script: Projects\nativeEx_barebone\Basic\!WBManager\!!Bogus.Script
Output file: Test.txt

%Dir% before 'Retrieve,FileSize' call

%Dir% After 'Retrieve,FileSize' call
All Zeros are replaced with the returned file size 197120

Before: C:\!Work\WinBuilder\WinBuilder_072\Projects\Tools
After: C:\!Work\WinBuilder\WinBuilder_19712072\Projects\Tools

No Zeros in Path before/after is the same.

(Hopefully that was coherent)

Thanks for all your efforts!

Attached File(s)
Attached File  FileSize_Problem.zip ( 6.55k ) Number of downloads: 3
Go to the top of the page
+Quote Post
Digg this topic Add to my del.icio.us  
Start new topic
Replies (1 - 1)
Nuno Brito
post Oct 9 2007, 06:08 PM
Post #2

Advanced Member

Group: .script developer
Posts: 4,153
Joined: 13-July 06
From: Azores
Member No.: 1


Will test and let you know my results soon, thanks for posting! (IMG:../forums/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
« Next Oldest · Support and Bug reporting · Next Newest »

Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:


> Similar Topics

  Topic Replies Topic Starter Views Last Action
No New Posts DirectX 9c
Minimal Install
4 wendy 502 6th August 2007 - 12:28 AM
Last post by: thunn
No New Posts DirectX support
Add support to directX inside your XP project
2 Nuno Brito 191 31st July 2007 - 04:34 PM
Last post by: Nuno Brito
No New Posts Topic has attachmentsPaths settings in the wrong place
8 MedEvil 655 18th April 2007 - 05:19 PM
Last post by: Nuno Brito
No New Posts DirMake-bug...maybe
produces file instead of directory
6 Holger 657 13th January 2007 - 07:00 PM
Last post by: psc
No New Posts DirCopy
Not intuitive behaviour!
3 niche99 592 17th September 2006 - 04:32 PM
Last post by: proton


Display Mode: Switch to: Standard · Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

- Lo-Fi Version Time is now: 12th October 2007 - 04:32 AM

MKPortal ©2003-2006 mkportal.it