Tag Info

New answers tagged


FindFile["ExampleData/numberdata.csv"] will give you the answer for this, or just about any other file Import could locate.


Your example record has two delimiters, the double quotes and the unquoted spaces. One approach to process this record is to define a function, f1, that splits the record according to the spaces. We will end up keeping only the first field and the last 4 fields from this split. We also define a function, f2, that splits the record on the double quotes, ...


Useful functions in this context: Split the path in components: FileNameSplit["U\\SomeDirectory\\SomeSecretDirectory\\veryImportantFile.pdf"] (* {"U", "SomeDirectory", "SomeSecret Directory", "veryImportantFile.pdf"} *) Get the 'pure' file name (without file extension): FileBaseName["U\\SomeDirectory\\SomeSecretDirectory\\veryImportantFile.pdf"] (* ...


This is decidedly not an answer, so please do not give me the bounty. It is also not a solution to the problem, for the simple reason that my C++, Win32, and LibraryLink skills are virtually nonexistent, and certainly not sufficient to write this robustly. Rather, my intent is simply to show that the answer given by Eric Towers contains some serious ...


I don't have a Windows machine to test this on anymore. I've seen this problem before in the form: .Net programs and DOS batch files cannot (or, at least, could not) distinguish upper and lower case filenames, so SFNs (8.3 filenames) had to be used for disambiguation or the ignore case and hide extensions options had to be disabled in File Explorer and/or ...


Extending R.M's answer: Button["Choose directory", dir = SystemDialogInput["Directory"], Method -> "Queued"] works without error.

Top 50 recent answers are included