Welcome to the idea2app forum!

Moderators: LCNeil, heatherlaine, kevinmiller, elanorb

john50
Posts: 9
Joined: Sun Nov 10, 2013 4:50 am

Re: Saving and retreiving data to/from a common network driv

Post by john50 » Mon Jan 20, 2014 10:16 pm

I am trying to save/retrieve data for this little app to a common drive in a network but I am not having any success. I have attached the app as an attachment.


This is the name of the common drive in the network I want to save to: common (\\APPSRV01) (T:)

This is the code I am using: (No errors but does not build or retrieve from the T: drive.)

Code: Select all

   create folder (specialFolderPath ("Home") & "/common (\\appSRV01) (T:)" & "/Record_Data")  
  put specialFolderPath("Home") & "/common (\\appSRV01) (T:)/Record_Data/record.txt" into cLocation
Any help would be welcome

John 50
Attachments
Prospect Record_002.7z
(2.85 KiB) Downloaded 89 times

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Welcome to the idea2app forum!

Post by LCNeil » Tue Jan 21, 2014 10:11 am

Hi John,

This sound like a file path issue as

Code: Select all

(specialFolderPath ("Home") & "/common (\\appSRV01) (T:)" & "/Record_Data")  
resolves to

Code: Select all

 "C:/Users/<username>/common (\\appSRV01) (T:)/Record_Data"
An easy way to find the correct file path to a given folder is by placing the below script in a button

Code: Select all

on mouseUp
answer folder "show me the path"
answer it
end mouseUp
This should inform you to whether the file path is correct or not.


Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com

Post Reply

Return to “idea2app and Coding School”