Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. error : Datei auf Netzlaufwerk öffnen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    UNSOLVED error : Datei auf Netzlaufwerk öffnen

    This topic has been deleted. Only users with topic management privileges can see it.
    • bahnuhr
      bahnuhr Forum Testing Most Active @fastfoot last edited by

      @fastfoot sagte in error : Datei auf Netzlaufwerk öffnen:

      @Homoran sagte in error : Datei auf Netzlaufwerk öffnen:

      @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

      Die backslash werden einfach geschluckt !

      Mit backslash escapen?!

      Unter Windows funktioniert das so, also mit Doppel-Backslash

      Z:\\pfad1\\pfad2\\test.txt
      

      geht nicht !

      Im Script steht:

          workbook.xlsx.readFile("z:\\Computer\\Pool\\Messungen.xlsm") 
      

      Fehler im log:

      javascript.0	2020-07-21 17:11:16.579	error	(7784) Error: File not found: z:\Computer\Pool\Messungen.xlsm at XLSX.readFile (C:\iobroker\node_modules\iobroker.javascript\node_modules\exceljs\lib\xlsx\xlsx.js:50:13)
      javascript.0	2020-07-21 17:11:16.579	error	(7784) Error: File not found: z:\Computer\Pool\Messungen.xlsm
      javascript.0	2020-07-21 17:11:16.579	error	(7784) An error happened which is most likely from one of your scripts, but the originating script could not be detected.
      
      F 1 Reply Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active last edited by bahnuhr

        Und bei IP, mit:

        workbook.xlsx.readFile("\\192.168.243.5\\Computer\\Pool\\Messungen.xlsm")
        

        kommt die gleiche Fehlermeldung.
        "File not found"

        liv-in-sky 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @bahnuhr last edited by

          @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

          Zum Schluss kommt doch nie ein Punkt.
          Zumindest hab ich das noch nirgends gesehen.

          Aber irgendein Trenner muss da schon sein. Jetzt hast du einen backslash an der Stelle.

          1 Reply Last reply Reply Quote 0
          • F
            fastfoot @bahnuhr last edited by

            @bahnuhr habe mir mal den Source von exceljs angesehen, da wird auf einen Forwardslash geprüft(const last = filepath.lastIndexOf('/');). Ersetze deine backslash mal mit /, das sollte auch funktionieren, habe es soeben mit fs.readFile mal geprüft, einzelne / sollten reichen

            bahnuhr 1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active @fastfoot last edited by

              @fastfoot sagte in error : Datei auf Netzlaufwerk öffnen:

              @bahnuhr habe mir mal den Source von exceljs angesehen, da wird auf einen Forwardslash geprüft(const last = filepath.lastIndexOf('/');). Ersetze deine backslash mal mit /, das sollte auch funktionieren, habe es soeben mit fs.readFile mal geprüft, einzelne / sollten reichen

              workbook.xlsx.readFile("/192.168.243.5/computer/Pool/Messungen.xlsm")
              Ergebnis : File not found: /192.168.243.5/computer/Pool/Messungen.xlsm

              workbook.xlsx.readFile("z:/192.168.243.5/computer/Pool/Messungen.xlsm")
              Ergebnis : File not found: /192.168.243.5/computer/Pool/Messungen.xlsm

              workbook.xlsx.readFile("/synology/computer/Pool/Messungen.xlsm")
              Ergebnis : File not found: /192.168.243.5/computer/Pool/Messungen.xlsm

              klappt bei mir nicht.

              F 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @bahnuhr last edited by

                @bahnuhr gehören vor der 192 nicht 4 backslashes ?

                \\192.168......\...\ ...

                bahnuhr 2 Replies Last reply Reply Quote 0
                • bahnuhr
                  bahnuhr Forum Testing Most Active @liv-in-sky last edited by

                  @liv-in-sky sagte in error : Datei auf Netzlaufwerk öffnen:

                  @bahnuhr gehören vor der 192 nicht 4 backslashes ?

                  \\192.168......\...\ ...

                  Die Variante hatte ich noch gar nicht.
                  Ich probiers aus.

                  1 Reply Last reply Reply Quote 0
                  • bahnuhr
                    bahnuhr Forum Testing Most Active @liv-in-sky last edited by bahnuhr

                    @liv-in-sky sagte in error : Datei auf Netzlaufwerk öffnen:

                    @bahnuhr gehören vor der 192 nicht 4 backslashes ?

                    \\192.168......\...\ ...

                    workbook.xlsx.readFile("\\Synology\Computer\Pool\Messungen.xlsm") (es sind 4 back...)

                    wie erwartet.
                    File not found: \SynologyComputerPoolMessungen.xlsm

                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • bahnuhr
                      bahnuhr Forum Testing Most Active last edited by

                      Wäre es denn möglich, dass ein admin dies mal nachvollzieht ?

                      Auf einem win Rechner; wo ganz normal ein netzlaufwerk als Buchstabe z: eingebunden ist.

                      Und dann Zugriff auf eine Datei.

                      1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @bahnuhr last edited by

                        @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                        \Synology\Computer\Pool\Messungen.xlsm

                        \\\\Synology\\Computer\\\Pool\\\Messungen.xlsm
                        

                        hat der andere server eigentlich den richtigen user account - ich weiß nicht ob windows iobroker einen eigenen user hat - wenn ja muss der auch rechte haben, um das verzeichnis zu lesen

                        bahnuhr 1 Reply Last reply Reply Quote 0
                        • F
                          fastfoot @bahnuhr last edited by

                          @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                          klappt bei mir nicht.

                          Da ist kein Beispiel mit Z: dabei. Wie gesagt, intern wird auf / geprüft, um den Pfad zu bestimmen, alle Versuche mit \ werden da fehlschlagen!

                          bahnuhr 1 Reply Last reply Reply Quote 0
                          • bahnuhr
                            bahnuhr Forum Testing Most Active @fastfoot last edited by

                            @fastfoot sagte in error : Datei auf Netzlaufwerk öffnen:

                            @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                            klappt bei mir nicht.

                            Da ist kein Beispiel mit Z: dabei. Wie gesagt, intern wird auf / geprüft, um den Pfad zu bestimmen, alle Versuche mit \ werden da fehlschlagen!

                            sowas:
                            workbook.xlsx.readFile("z:/computer/Pool/Messungen.xlsm")
                            Ergebnis: Error: File not found: z:/computer/Pool/Messungen.xlsm

                            F 1 Reply Last reply Reply Quote 0
                            • bahnuhr
                              bahnuhr Forum Testing Most Active @liv-in-sky last edited by

                              @liv-in-sky sagte in error : Datei auf Netzlaufwerk öffnen:

                              hat der andere server eigentlich den richtigen user account - ich weiß nicht ob windows iobroker einen eigenen user hat - wenn ja muss der auch rechte haben, um das verzeichnis zu lesen

                              Und wie finde ich das jetzt raus?

                              Habe in win nur 1 Benutzer (mich selber). Und der hat Admin rechte.
                              Auf der synology ebenfalls nur 1 Nutzer.

                              liv-in-sky 1 Reply Last reply Reply Quote 0
                              • bahnuhr
                                bahnuhr Forum Testing Most Active last edited by

                                wenn ich auf z:\ eigenschaften klicke kommt:
                                d9a106dc-146b-425e-847a-585fbe464704-image.png

                                Ich müsste doch alles dürfen, oder ?

                                1 Reply Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @bahnuhr last edited by

                                  @bahnuhr evtl unter dienste bei iobroker

                                  bahnuhr 1 Reply Last reply Reply Quote 0
                                  • bahnuhr
                                    bahnuhr Forum Testing Most Active @liv-in-sky last edited by

                                    @liv-in-sky sagte in error : Datei auf Netzlaufwerk öffnen:

                                    @bahnuhr evtl unter dienste bei iobroker

                                    Unter dienste ???
                                    wo soll da etwas stehen ?

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      fastfoot @bahnuhr last edited by

                                      @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                                      sowas:
                                      workbook.xlsx.readFile("z:/computer/Pool/Messungen.xlsm")
                                      Ergebnis: Error: File not found: z:/computer/Pool/Messungen.xlsm

                                      es ist doch eigentlich nicht sooo schwer 🙂 da fehlt jetzt der Doppel-Slash hinter Z://
                                      Folgendes funktioniert hier

                                      const Excel = require('exceljs');
                                      
                                      const workbook = new Excel.Workbook();
                                      
                                      workbook
                                        .xlsx
                                        .readFile('X://unix-data/sample1.xlsx')
                                        .then(() => {
                                          console.log('data was read');
                                        })
                                          .catch((err) => {
                                          console.log("err", err);
                                        });
                                      
                                      
                                      bahnuhr 1 Reply Last reply Reply Quote 0
                                      • bahnuhr
                                        bahnuhr Forum Testing Most Active @fastfoot last edited by

                                        @fastfoot sagte in error : Datei auf Netzlaufwerk öffnen:

                                        es ist doch eigentlich nicht sooo schwer da fehlt jetzt der Doppel-Slash hinter Z://

                                        Doch ist ist schwer wenn man nicht genau weiß was gemeint ist.

                                        Eingegeben hab ich:
                                        workbook.xlsx.readFile("z://computer/Pool/Messungen.xlsm")

                                        Ergebnis:
                                        Error: File not found: z://computer/Pool/Messungen.xlsm

                                        Bei mir klappt dies nicht. Aber trotzdem danke.

                                        Und mit deinem Script:

                                        const Excel = require('exceljs');
                                         
                                        const workbook = new Excel.Workbook();
                                         
                                        workbook
                                          .xlsx
                                          .readFile('z://computer/Pool/Messungen.xlsm')
                                          .then(() => {
                                            console.log('data was read');
                                          })
                                            .catch((err) => {
                                            console.log("err", err);
                                          });
                                        

                                        kommt im log: err

                                        FredF 1 Reply Last reply Reply Quote 0
                                        • FredF
                                          FredF Most Active Forum Testing @bahnuhr last edited by

                                          @bahnuhr
                                          Keine Ahnung obs daran liegt, ist mir nur aufgefallen

                                          .xlsx ist doch nicht gleich .xlsm 🤓

                                          bahnuhr 1 Reply Last reply Reply Quote 0
                                          • bahnuhr
                                            bahnuhr Forum Testing Most Active @FredF last edited by

                                            @FredF sagte in error : Datei auf Netzlaufwerk öffnen:

                                            @bahnuhr
                                            Keine Ahnung obs daran liegt, ist mir nur aufgefallen

                                            .xlsx ist doch nicht gleich .xlsm 🤓

                                            xlsm heißt es sind makros enthalten

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            431
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            error netzlaufwerk
                                            10
                                            93
                                            3539
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo