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

Awk: I want to use the input filename to generate an output file with same name different extension

I have a script that looks like this: #! /bin/awk -f BEGIN { print "start" } { print $0 } END { print "end" } Call the script like this: ./myscript.awk test.txt Pretty simple - takes a file and adds "start" to the start and "end" to the end. Now I…
code_fodder
  • 15,263
  • 17
  • 90
  • 167
1
vote
0 answers

PHAssetCreationRequest DNG File Name

This is a snippet from Apple's sample code AVCamManualExtendingAVCamtoUseManualCaptureAPI where the DNG data has to be temprorily written in to a file before moving to PHPhotoLibrary: [PHPhotoLibrary requestAuthorization:^( PHAuthorizationStatus…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
1
vote
2 answers

Powershell Move-Item from Import-CSV: Error - Could not find part of the path

I've been working on a script in Powershell to get paths from a CSV file and move those files at the corresponding path to a new destination elsewhere. often with a different filename. I am using Version 5.0 For example: Source Destination :…
DrDro
  • 11
  • 1
  • 4
1
vote
1 answer

iOS 11 Extracting filename when doing Drag and Drop PDF from Dropbox

I have implemented iOS 11 Drag and Drop to allow PDF files to be dragged into my App from Files on iPad. I have a DragDropFile class as follows: import Foundation import MobileCoreServices //Drag and drop PDF files class DragDropFile : NSObject,…
1
vote
1 answer

How to find the filename from a C++11 stat object's file serial number on Windows

Because in Windows, with Visual Studio, the __FILE__ macro can give lower-case strings, and because I need to know the correctly-cased filename (as perceived by users), I am trying to work out how to convert an all lower-case path on windows to the…
Clare Macrae
  • 3,670
  • 2
  • 31
  • 45
1
vote
1 answer

Change default filename in SaveAs Dialog

I am trying to change the proposed filename within the "Save As"-Dialog based on the content of a Content Control. My understanding was that Word is proposing the Document Property „Title“ within the SaveAs Dialog. Within an empty Document I created…
Kaladorn
  • 11
  • 1
1
vote
1 answer

i want to create a VBA code in Word that will create multiple word files with different file names

I want to create multiple saves of the same word file using visual basic. each file will need to be named with the day of the month and month name (not numbers) i want this to run from the 1 to 31 on each month. i have a rough code, Sub Mine() Dim…
1
vote
1 answer

How to allow a filename with whitespace in python?

I have a script for importing the contents of csv files in to a database. But when I try filepath = '/Users/mc_kaiser/Desktop/Foo\ 020218-021318.csv' test = open(filepath) I get an IOError: IOError: [Errno 2] No such file or directory:…
mc_kaiser
  • 717
  • 8
  • 18
1
vote
1 answer

Compress a long string to a shorter one which is unique using Java

The code dynamically creates a file name which sometimes exceed the specified 255 characters length for the file name. So it needs to be cropped into a unique short length string in Java. Below are the restrictions: The shortened string will be…
Saran
  • 213
  • 2
  • 5
  • 13
1
vote
1 answer

Get all files or images with the same initial part of the name

I have 1 ListBox with files names, obtained with this code: Dim files As New List(Of String) files.AddRange(IO.Directory.GetFiles(Xpath, "*.txt"). Select(Function(f) IO.Path.GetFileNameWithoutExtension(f))) I want to load at PictureBox a list of…
arc95
  • 97
  • 1
  • 8
1
vote
2 answers

Add path name to downloading file name

I want people to be able to download several files that sum up lessons I am teaching. Files are pdf organized in folders like this: .htaccess 01-science/ lesson-1/ notes.pdf slides.pdf lesson-2/ notes.pdf …
bmrs
  • 21
  • 4
1
vote
0 answers

how to add specific column from html website to list box

so i want to display in the list box when i click 'Button1' only the file names of the files in this directory of my website http://prntscr.com/i8doj3 . i want all them files names in the list box. this is the rubbish code i came up with it only…
God Dumps
  • 11
  • 1
1
vote
1 answer

Strip date from filename using batch script

I have multiple files with dates on them I would like to strip. exOpTimer01232018.txt exOpProcess01232018.txt exOpFac01232018.txt exOpProd01232018.txt I would like to have a batch script remove the date and leave result such…
MakkaCha
  • 35
  • 8
1
vote
0 answers

Display all user uploaded files filenames in view of RoR app

I would like to display all the filenames of the files users have uploaded to my Ruby-on-Rails app in a view for admin to see the filename before downloading the file. All the files are stored in a directory. My UploadController is the…
Fox
  • 11
  • 2
1
vote
1 answer

R - How to build a filename with variables

I know that this is very easy in Phython, but I dont find any solutions in R for my problem: I want to create multiple files like that: write.table(df, "EUmax_20J_1993.dat", row.names=TRUE, col.names=TRUE) write.table(df, "EUmax_10J_1994.dat",…
Essi
  • 761
  • 3
  • 12
  • 22