Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Check FIle Exist in Javascript

Check FIle Exist in Javascript

Scheduled Pinned Locked Moved JavaScript
javajavascripttoolshelp
2 Posts 2 Posters 4 Views 1 Watching
  • 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
    ShafiqA
    wrote on last edited by
    #1

    Hey experts I am facing a problem from last couple of week,I am not finding any solution for that. I need to check some file in local machine like- "c:\test.txt" through java script when page is getting load,so i can show/Hide a div accordingly. although i tried var fso = new ActiveXObject("Scripting.FileSystemObject"); // if condition to check whether the specified file exists or not. if(fso.FileExists("C:\\test.txt")) but its work in IE only after changing some setting in internet option, which is not secure. Can anybody give right solution for all browser It would be great Thanks in Adv.. Shafiq

    N 1 Reply Last reply
    0
    • S ShafiqA

      Hey experts I am facing a problem from last couple of week,I am not finding any solution for that. I need to check some file in local machine like- "c:\test.txt" through java script when page is getting load,so i can show/Hide a div accordingly. although i tried var fso = new ActiveXObject("Scripting.FileSystemObject"); // if condition to check whether the specified file exists or not. if(fso.FileExists("C:\\test.txt")) but its work in IE only after changing some setting in internet option, which is not secure. Can anybody give right solution for all browser It would be great Thanks in Adv.. Shafiq

      N Offline
      N Offline
      NeverHeardOfMe
      wrote on last edited by
      #2

      Yes, you did ask this a while ago. And you were given the answer then.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups