How to access remote files


#1

I'm having troubles accessing files stored on a remote disk. I can't find the right syntax to pass to the File contructor.

 

\\server-name\path\to\the\file.

 

I get always an assert in the file path parser.

 

I've tried also using file://server-name/... but nothing.

 

I need some extra library or use directly Windows APIs?


#2

You're definitely getting your c++ escape characters right? i.e. "\\\\server-name\\foo\\bar" ?


#3

Wonderful! It works. I forgot the 4 backslashes at the beginning.

Thanx a lot Jules.