About 50 results
Open links in new tab
  1. How to check type of files without extensions? [duplicate]

    I have a folder full of files and they don't have an extension. How can I check file types? I want to check the file type and change the filename accordingly. Let's assume a function filetype(x) re...

  2. How to check if a file exists in a shell script - Stack Overflow

    Oct 17, 2016 · The backdrop to my solution recommendation is the story of a friend who, well into the second week of his first job, wiped half a build-server clean. So the basic task is to figure out if a file …

  3. warning can't open/read file: check file path/integrity

    Apr 27, 2022 · Check if such a file really exists. If it gives an error, put it at the same address as the image or the file, for example: the location of your file is C:\Desktop with this name polarbear.jpg.

  4. windows - How to check if a file exists from inside a batch file ...

    I need to run a utility only if a certain file exists. How do I do this in Windows batch?

  5. How to check whether a file is empty or not - Stack Overflow

    0 0 0 So you should check whether the file to be tested is compressed (e.g. examine the filename suffix) and if so, either bail or uncompress it to a temporary location, test the uncompressed file, and then …

  6. How do I tell if a file does not exist in Bash? - Stack Overflow

    Mar 12, 2009 · If you want to check for file and folder both, then use -e option instead of -f. -e returns true for regular files, directories, socket, character special files, block special files etc.

  7. Check if a file exists or not in Windows PowerShell?

    Aug 7, 2015 · I would like to modify this so that it avoids doing this if the file does not exist in both areas and prints a warning message. Can someone tell me how I can check if a file exists using PowerShell?

  8. excel - Check if the file exists using VBA - Stack Overflow

    Jul 20, 2012 · Use the Office FileDialog object to have the user pick a file from the filesystem. Add a reference in your VB project or in the VBA editor to Microsoft Office Library and look in the help. This …

  9. fs - Node.js check if file exists - Stack Overflow

    From Node js documentation, seems like the best way to go if you plan on opening the file after checking its existence, is to actually open it and handle the errors if it doesn't exists. Because your …

  10. How do I check whether a file exists without exceptions?

    How do I check whether a file exists or not, without using the try statement?