Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. System Cannot Find Path Specified
Forum Update on Monday, May 27th 2025

System Cannot Find Path Specified

Scheduled Pinned Locked Moved Unsolved General and Desktop
visual studiocmakec++compiler
25 Posts 6 Posters 10.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    surferbrain
    wrote on last edited by
    #14

    Does anyone else have any possible solutions, besides reinstalling Windows?

    JonBJ 1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by hskoglund
      #15

      Hi, maybe you can use Qt Creator through my suggestion before (i.e. launch a normal (not a Developer) CMD window) and type these 3 lines:

      set path=
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
      C:\Qt\Tools\QtCreator\bin\qtcreator.exe
      

      If you can compile nside Qt Creator now, you could put those 3 lines a .bat file...

      1 Reply Last reply
      0
      • S surferbrain

        Does anyone else have any possible solutions, besides reinstalling Windows?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #16

        @surferbrain
        You need to look inside that vcvarsall.bat file and see what paths it is trying to find/execute which cannot be found. Isn't the problem in your VS set up rather than Creator?

        1 Reply Last reply
        0
        • jondoe420J Offline
          jondoe420J Offline
          jondoe420
          wrote on last edited by
          #17

          I am still having this problem in 2022. Did no one work on a fix? I thought those enterprise licenses were supposed to pay for something

          JonBJ JKSHJ 2 Replies Last reply
          1
          • jondoe420J jondoe420

            I am still having this problem in 2022. Did no one work on a fix? I thought those enterprise licenses were supposed to pay for something

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #18

            @jondoe420 said in System Cannot Find Path Specified:

            I thought those enterprise licenses were supposed to pay for something

            What "enterprise licenses"? Do you mean some kind of Qt commercial licence? If so why not ask TQtC?

            1 Reply Last reply
            0
            • jondoe420J jondoe420

              I am still having this problem in 2022. Did no one work on a fix? I thought those enterprise licenses were supposed to pay for something

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #19

              @jondoe420 said in System Cannot Find Path Specified:

              I am still having this problem in 2022. Did no one work on a fix? I thought those enterprise licenses were supposed to pay for something

              The Qt enterprise license can't fix your Visual Studio installation for you.

              If you'd like assistance, please provide diagnoatic information like what @surferbrain did above.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              1
              • N Offline
                N Offline
                Nahian
                wrote on last edited by
                #20

                so, can anyone give a step by step guide? I feel like it's taking different path even after specifying it. i=I used ifstream, fstream, ofstream, and QFile, but none worked. It's hard to believe that this issue is not being fixed. I am using QT creator.

                JonBJ 1 Reply Last reply
                0
                • N Nahian

                  so, can anyone give a step by step guide? I feel like it's taking different path even after specifying it. i=I used ifstream, fstream, ofstream, and QFile, but none worked. It's hard to believe that this issue is not being fixed. I am using QT creator.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #21

                  @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.

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    Nahian
                    wrote on last edited by
                    #22

                    @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.

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      Nahian
                      wrote on last edited by
                      #23

                      @JonB Here's the video to my issue: [https://youtu.be/FrFimu395Mo](link url)

                      JonBJ 1 Reply Last reply
                      0
                      • N Nahian

                        @JonB Here's the video to my issue: [https://youtu.be/FrFimu395Mo](link url)

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by JonB
                        #24

                        @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.

                        1 Reply Last reply
                        1
                        • N Offline
                          N Offline
                          Nahian
                          wrote on last edited by
                          #25

                          yeah after talking to someone, I came up with a solution... hopefully this works

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved