07-14-2011 10:56 AM
I have just changed Desktops. Running XP on both.
I have a VBS script that worked beautifully writing out to Excel file using DataFilesavesel
With the new desktop it is giving me an error saying that the file cannot be wriiten to , error 6200.
I can write out PNG and TDM files from the script successfully.
Is it a file permission/Windows type problem?
I am using version Diadem 10.1
Thanks
Stagsden
07-20-2011 09:10 AM
Hi Stagsden,
Thanks for using the NI Forums! This sounds like an interesting issue! Are you logged on as Administrator in both PC's? Also where is the script file and the file you are trying to save to located on the PC?
Do you have a small script I can try to see if I can reproduce this issue?
Ash
07-20-2011 09:14 AM
Hello Ashish,
I have narrowed the problem down to two lines of code;
FileParameters = "<filename>" & FileNamePath &"</filename>"
FileParameters = FileParameters & "<delimiter>" & Delimiter &"</delimiter>"
If I do not include these lines and just let the program use DATAFILESAVESEL with the filename and filepath, then the file generated is not a tab deliminated file. Excel open it with question marks in the gaps.
I am looking for a tab deliminated file.
Thanks
Stagsden
07-20-2011 09:16 AM
Hello Ashish,
Yes I am logged on as administrator and I am trying to write the files to the hard drive and a memory stick in a USB port. I have tried removing the USB and/or hard drive, but nothing different happens.
Stagsden
07-25-2011 11:37 AM
Hi there,
Hmm this seems like an odd one! Have you tried just writing to the local drive rather than an external HDD or USB? Also when specifying the FileParameters are you specifying the Delimiter = ","? This is described further here
Ash
07-25-2011 12:11 PM
The problem has been solved by using the SP1 version of Diadem 2010.
Thanks
Stagsden
07-25-2011 12:22 PM
Thanks for the reply Stagsden!
Ash