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
2 answers

Sequentially number files by being prompted for the first number in php

php, command line, windows. I need to sequentially number each .txt file in a directory. Any way I can specify the first number to use in the sequence in the command line when I type the script? (Instead of every time manually editing the script…
user3026965
  • 673
  • 4
  • 8
  • 22
1
vote
1 answer

select files from a list of files with a pattern

I have a list of files, which was created using list.files: filesxx<-list.files(pattern="0-4000") obtainig a list like the following one: [1] "Alta Guajira Coord & elevation TS 0-4000.txt" "Baja Guajira Coord & elevation TS…
Davido
  • 121
  • 4
  • 12
1
vote
0 answers

Remove all foreign characters from filename by php (command line)

From the filenames, recursively in the current directory, I need to remove all "foreign" characters (Chinese, Amharik, Sanskrit, EU accented/diacritical, more exotic ones..., etc.) other than the following "allowed" characters: a-zA-Z0-9.-_=~ The…
user3026965
  • 673
  • 4
  • 8
  • 22
1
vote
3 answers

user defined Parameter used as part of a filename in Access

I have an access 2007 Database that outputs a report in excel format, the report is dependent on a date parameter that is chosen by the user. This parameter is selected via a textbox (text100) that has a pop up calendar. I would like to use the date…
Craig G
  • 247
  • 2
  • 6
  • 15
1
vote
3 answers

Remove section of filename

I am needing a batch file to remove a certain part from multiple filenames in the same directory. Example: I have over 80,000+ files with the title like so: Test Title, The - Conspiracy.zip I am needing ", The" removed from file names leavin the…
1
vote
1 answer

Write Filename to cell from DIR in VBA

I have the macro attached below that loops through files in a Dir and copies data into a master file (which the macro is run from). What I want to do is also write in the master file, the name of the file that the data has been copied from at the…
dnaylor93
  • 77
  • 1
  • 9
1
vote
1 answer

how to show contents of the file rather than filename when searching by solr

I have a lot of pdf files (text inside), and I want to build a simple search engine to search the sentences which contains the given keywords. After several hours' searching, I chose solr as the tool. I am new to solr. I downloaded latest solr 6.5.0…
peng li
  • 49
  • 6
1
vote
3 answers

How can I match all images without thumb image using regexp

How can I match all images without thumb image using regexp ? hi.gif thumb.gif hello.gif Result should be : hi.gif hello.gif I am using .+(gif|GIF|jpg|JPG) to match all images
faressoft
  • 19,053
  • 44
  • 104
  • 146
1
vote
3 answers

Converting querystring to filename - best practise?

I have a handler (c#/asp.net) that pulls images from a database. The current format looks like foo.com/_image.ashx?querystring1&querystring2 The querystring keys are things like id, width, zoom level etc. I can either munge this up into a filename…
maxp
  • 24,209
  • 39
  • 123
  • 201
1
vote
2 answers

Wordpress template for specific nested page

In Wordpress I have a page with the slug logged-user with a parent page ecadmin, making it accessible under the URL /ecadmin/logged-user/. Since it has a parent page, I (or any other user) can create a page with the same slug logged-user as long as…
1
vote
2 answers

JavaScript match files that contains certain prefix

I have a gulp.src on a task but I want to match all the files that contain a certain word as a prefix e.g.: gulp.src('./mydir/project.build-blessed1.css') But there can be N files with different numbers, blessed1, blessed2, blessed3 How can I make…
DJ22T
  • 1,628
  • 3
  • 34
  • 66
1
vote
0 answers

ffmpeg convert images with name pattern into video

I am converting png images into a video using ffmpeg. My png file names are like this: image1_xy.png image2_xy.png image3_xy.png image4_xy.png ... image10_xy.png image11_xy.png ... image100_xy.png image101_xy.png ... my script is the…
passion
  • 1,000
  • 6
  • 20
  • 47
1
vote
2 answers

How to print the current filename in a plot in matlab?

I have one .m file per plot and want to see in my draft printouts, which file was used to create it. This should be done with a function which can be placed in my .m file and commented out, for the final version. % addWatermarkFilename() % So far…
Jonas Stein
  • 6,826
  • 7
  • 40
  • 72
1
vote
1 answer

How to extract only the filename from a url string

I have a URL in which the structure of the first part always changes and last part doesn't. Using this url as input: https://ig-s-b-a.akamaihd.net/hphotos-ak-xfa1/t51.2885-19/17438789_1884899458414605_8605163171642081280_a.jpg I would like to…
jack whacky
  • 53
  • 2
  • 5
1
vote
1 answer

Replace a text file which may or may not contain a space in file name

I want to replace a file named with different name using VBScript. The input file name may or may not contain blank spaces. Set objFSO = CreateObject("Scripting.FileSystemObject") ' First parameter: original location\file ' Second parameter: new…
1 2 3
99
100