Questions tagged [filenames]

Filenames are metadata about a file; a string used to uniquely identify a file stored on the file system of a computer.

The filename is metadata about a file; a special kind of string used to uniquely identify a file stored on the file system of a computer. Some operating systems also identify directories in the same way. Different operating systems impose different restrictions on length and allowed characters on filenames.

4148 questions
1
vote
1 answer

VBA Import data from external worksheet - variable worksheet name

I'm looking to do the following: CommandButton in a destination Worksheet opens a source file (dialog box to choose which one) Finds a worksheet (always the same name - "Performance") within the source file Copies a range of cells (actually a…
L.J.
  • 13
  • 7
1
vote
3 answers

How to calculate expenses in a file in list and change it to tuple(python)

guys i couldn't solve this problem... I have a file 'text.CSV' like this: milk,2.35 bread , 1.95 chips , 2.54 milk , 2.38 milk,2.31 bread, 1.90 def takes file and it should return this: [('bread', '$3.85'), ('chips', '$2.54'), ('milk',…
user8413109
1
vote
1 answer

Loop over partially numbered files in Fortran

I want to loop over filenames in a directory ./dir1/. The files in this directory partially follow a numbered pattern, for example data001_abjdfsd.dat data002_dchuwe.dat data003_jnvkfi.dat and so on. The first 8 characters follow a numbered…
nougako
  • 234
  • 1
  • 8
1
vote
1 answer

latex: how to "\input" a file whose filename depends on "~"?

in a latex file called "main.tex" i can write the line \input /home/user1/defs.tex to input the conents of "defs.tex" at the position of that command. now i want to generalize this, so that any user can compile the tex-document and "defs.tex"…
Clemens
  • 11
  • 2
1
vote
2 answers

powershell webclient uploadfile # in filename

Hi I just tested around with powershell Webclient. Everthing seemed to work fine, but then i had to upload a file with a # in the name (test.#00). The File on the Server just strips the .#00. The file on the server is named "test" instead of…
autlunatic
  • 650
  • 7
  • 17
1
vote
0 answers

Python passing filenames with "/" and "()" to Ghostscript

I am trying to obtain all the files names in a folder, and then use the same name to save a jpg. When i run this script, everything works. I do not have the luxury to write the file names myself everytime so I am passing in all the file names in the…
user8022517
1
vote
0 answers

Bash, normalize case in paths under dir

I have a directory with files and other directories inside. I want to normalize all file paths inside it to lower-case. By this I mean that: Whenever there are two paths ./A/b/d and /a/b/c under the directory (that I call .). Then A and a should be…
a06e
  • 18,594
  • 33
  • 93
  • 169
1
vote
3 answers

Regex to exclude a pattern in filename

My current pattern is: /\.(scss|js|jsx)$/ I want to exclude files that end with "-test.js" I've tried: /(?!-test)\.(scss|js|jsx)$/ but it's not working.
jeff
  • 1,169
  • 1
  • 19
  • 44
1
vote
1 answer

ngStyle not setting bg-image when filename has special characters

I've got an image coming back from an API that has some special characters: e.g. http://... /$(KGrHqR,!lIE8MU(kS7cBPL!Eccsjg~~60_1.JPG If I add the image manually, via dev tools, it loads fine. However, when doing something like:
1
vote
0 answers

What are alternatives to saving a file with a really long filename?

I have an unarchiver that takes in an archive name, and a directory name, and dumps all files from that archive into that directory. No other command-line options. However, someone zipped a file in the archive I am looking to decompress, with…
Alex
  • 947
  • 1
  • 8
  • 25
1
vote
2 answers

Delete file with slash in it with PHP

I made an app, and when it was tested, the tester made a file named: "Joe'sTestPage". Which amounted into: "Joes\'TestPage.htm". M problem is that the file is undeletable because of the slash in the name. I have tried using my ftp in my cpanel, but…
Tanner Ottinger
  • 2,970
  • 4
  • 22
  • 28
1
vote
1 answer

Using a powershell variable in multiple commands within a Windows batch file

In a Windows 7 batch file, I can call powershell v2 to create a string and then assign that string to a batch file variable to later use within another command, like this: for /f "delims=" %%a in ('powershell -noninteractive -NoProfile -Command…
1
vote
1 answer

Find the name of a "New " in C#

I'm making a program to automaticly move every file in a specific folder to my server, but I don't want my program to move "New files". But the problem is that the name of the file depends of the language of the coomputer and the type of file (For…
1
vote
2 answers

How to validate zero or more image names, allowing spaces, separated by commas or empty

I need to validate images with regular expressions, with the following conditions: $string may be empty I can receive a single image with this format, for example: 2017-06-01-03-55-00-5930782c5c0b1.jpg I can get several image names separated by…
Learning and sharing
  • 1,378
  • 3
  • 25
  • 45
1
vote
2 answers

PHP extract date from filename returned in foreach

Using PHP given that I have a foreach loop going through via glob to output some images, I would like to extract the date and time the images were uploaded. I have them named as follows when they are uploaded: 1234567_29052017-122959.jpg The first…
Bolte
  • 131
  • 3
  • 14
1 2 3
99
100