DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

report appendlayout: problem with dot character in path

Hello

i have and report .TDR file on a netword drive, which looks like this

 

E:\.Folder\tpl\1.TDR

 

Call Report.AppendLayout("E:\.Folder\tpl\1.TDR")

when i append it, it triggers error: "Error while opening the file "E:\.Folder\tpl\1.TDR"

---------------

When i move the file out of a folder with "." on the beginnig, it works fine. And i dont know how to deal with it, i tried doublequotte it, escape it, replace with chr(46), but still triggers error and i cant rename the folder with dot on the beginning.

any suggestion how to make it working? is it a bug that it triggers the error? 

Thanks

 

 

0 Kudos
Message 1 of 3
(2,765 Views)

Hi Lukas,

 

Are you wanting to load this file programmatically in your own VBScript or interactively with your own mouse actions?  I'm not aware of this problem, but I could totally believe that this is an issue.  In the meantime, I'd suggest that you copy the *.TDR file with Windows Explorer (interactively) or the FileCopy() command (programmatically), then load the *.TDR file from the new local folder you copied it to.

 

When I try to recreate this problem by adding a new "D:\.Folder\" folder to my hard drive, Windows won't let me name it that.  It looks like Windows considers this to be an invalid folder name.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 3
(2,732 Views)

True that. I tried as well but it didnt let me on windows to have folder with "." in the name. 

I think this folder was created in linux. 

I got a development space on a network drive with this name. i cant move the folder or copy it cause its on low level and it contains TBs of data.

 

For the moment i moved my development out of the parent folder with "." in name, so now i dont have an issue.

0 Kudos
Message 3 of 3
(2,712 Views)