Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

exportData exports to the wrong folder

Avatar

25-07-2008

I have xml of my data being exported and imported to a mapped drive. When I do an import it pulls the xml from the mapped drive as expected. When I export the xml, it exports it to the desktop. I have both in the click events of buttons. I have the events as Javascript and running from the client.



The code I have is:



exportData("xmlData.xml",0);

importData("xmlData.xml");



It should be importing and exporting from the same place, but it's not. It works properly however when I put the drive letter in. (I didn't know you had to escape the '\'.)



Such as:



exportData("X:\\xmlData.xml",0);

importData("X:\\xmlData.xml");



Any ideas?

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

28-07-2008

If no location is specified then I assume it will go from the users default profile (the defaultt file location for Windows).