[flexcoders] Finding a file on a shared drive using AIR File
I have a small program I am building for work that looks to see if a file is put on a shared network drive and if it exists, do something with it. While looking through the AIR notes I see you can set a literal path to the file. var fl = new File(S:\shared\folder\filename.txt); I tried this an it comes up and not existing even though I am looking right at it. I also tried something on my C:\ drive and it didnt work either. Any ideas on how to make this work?
Re: [flexcoders] Finding a file on a shared drive using AIR File
Found it: Add to nativePath and added the double slashes '\\' On 6/17/2010 11:43 AM, Wally Kolcz wrote: I have a small program I am building for work that looks to see if a file is put on a shared network drive and if it exists, do something with it. While looking through the AIR notes I see you can set a literal path to the file. var fl = new File(S:\shared\folder\filename.txt); I tried this an it comes up and not existing even though I am looking right at it. I also tried something on my C:\ drive and it didnt work either. Any ideas on how to make this work?