hello everybody:
The system's default path is D:\, But there are some PCs have not D:\, only C:\, So I would check whether d:\ (or a folder) exist, if not I would assign a path for file outputting to.
How can i check whether a folder exist?
If the folder does not exist both full-pathname and file-type will get the unknown value (?). If it does exist you can test file-type to make sure you are looking at a folder and not a file.
file-info also allows you to see whether the user has rights to read/write in the specified folder and/or file. You could even combine its use with "os-drives", which gives a list of the available harddisks in your system, so you can check each one (and checking is always a good idea; my os-drives for instance also lists some magical "F" drive that I do not have at all - it may be the memory card reader in my laptop or something). But as always, in the end it all depends on what your requirements are
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.