System Cannot Find Path Specified
-
@Nahian
Hello and welcome." step by step guide" to what? This thread is a question about the MS-supplied
vcvars...bat
file having an error in it when run on the user's system, likely nothing to do with Qt.I used ifstream, fstream, ofstream, and QFile, but none worked.
Used them for what? I don't see any connection between these calls and
vcvars.bat
issuing an error message. -
@JonB sorry for the late reply, my problem seems different, but the error message is similar to mine.
So my problem is: I am using a basic c++ technique just create a text file, but it's always telling me that file not found or cant open. It worked when I downloaded the qt creator for the first time, but now it doesn't work. The common error message was "System Cannot Find Path Specified" I am going to upload a video about the problem and send the link here so you can see everything.
-
@Nahian
Sorry, don't have time to watch a 5 minute video. You are supposed to paste a minimal example of any code which goes wrong.If you get the message "System Cannot Find Path Specified" it means exactly what it says: the file path you handed to it, probably to open for reading (you sure you are creating a file not opening a file??), cannot be found. Either you are passing an absolute path to a file which does not exist or, most likely, you are using a relative path. And since you don't know what directory that is relative to you must not do that, and must make a suitable absolute path to the file, e.g. with the help of QStandardPaths Class. Or you might use Qt resource paths if you want to supply a file embedded in your executable.