Questions tagged [dir]

Abbreviation for a directory, a virtual container within a digital file system.

Also a command equivalent to ls in Unix and found in operating systems such as DOS, VMS, and MS Windows.

442 questions
0
votes
1 answer

MATLAB missorting structure array when using dir command

I have a bunch of Excel data, called "1.xls", "2.xls"... until "15.xls", each with 141x44 sets of data. I am using the dir function to import the data into MATLAB. Here I am importing the first and second columns from each file into A and B matrix. …
user547550
0
votes
1 answer

cd to a search result with dir in cmd

I want to know how to change to the directory containing a particular file name, using a batch file. First, I want to search for a particular file using the dir command. I know there will only be one file found. I then want to cd to the directory…
Yerko Antonio
  • 657
  • 3
  • 8
  • 16
0
votes
3 answers

how to sort an array of files by keyword match of file name

I have this sort function which scans a directory and lists all jpg files, how could I make it to sort only jpg files whose file-name match a specified keyword, for example to find and sort all jpg files whose name includes the keyword "toys". …
0
votes
2 answers

Listing files in Directory in Ubuntu

I am trying to list files in the parent directory of the current directory, but when I try to execute this program from terminal I get Segmentation Error.. What am I doing wrong? Here is the code: #include #include #include…
Naruto
  • 1,710
  • 7
  • 28
  • 39
0
votes
1 answer

How to optimize External Storage file search on Android

Requirement Scan all folders and files on external storage to find all apk files and for each apk file, get info and display progress. How I did it so far My initial thought is that this is a simple thing to achieve. But well... even it it sort of…
Alin
  • 14,809
  • 40
  • 129
  • 218
0
votes
0 answers

What determines dir order or default order in Windows 7?

I'm loading up a thumbdrive with music for my car. The folders play out of order. I did a "dir" of the folders from command line, and the order matches - but neither is alphabetical. Windows Explorer shows them in alphabetical order. Why is…
mbourgon
  • 1,286
  • 2
  • 17
  • 35
0
votes
0 answers

PHP Readdir not reading alphabetically

Possible Duplicate: PHP readdir() not returning files in alphabetical order When uploaded to the hosting server, Readdir does not seem to read files alphabetically. I kinda named my files in a particular order so I really need the feature. Here…
AJ Naidas
  • 1,424
  • 7
  • 25
  • 47
0
votes
1 answer

Displaying the directory list

Trying the following program in Eclipse. List command = new ArrayList(); String fs = System.getProperty("file.separator"); command.add("C:\\cygwin" + fs + "bin" + fs + "sh"); command.add("-c"); command.add("dir"); ProcessBuilder…
Taani
  • 137
  • 11
0
votes
0 answers

Reading files from a dir on the sdcard

I'm trying to read a dir and within this dir I have files for each contact. I want to to be able to read those contacts and then put them into the listview. I have tried but, I get a Java error and tried to research it more and found out when I try…
TheBlueCat
  • 1,147
  • 5
  • 19
  • 38
0
votes
1 answer

Default dir to store a file that my app makes

A question, I'm making a app that will store a textfile (.txt) with highscore data. I've made a file with this line from my highscores activity: File highscoreList = new File("highscores.txt"); Where will it be placed? In the same dir as the…
-1
votes
1 answer

Directory tree listing

Hi i am looking for script witch lists directory's from ftp and read's all files from the listed folder..Is there something that can help me? > //open the dir $sub = ($_GET['dir']); $path = 'store/'.$diro.'/'; …
Blue
  • 37
  • 8
-1
votes
1 answer

Get directory name without full path (C unix)

DIR *dir; struct dirent *entry; if ((dir = opendir (argv[1])) != NULL) { while ((entry = readdir (dir)) != NULL) { if(strcmp(entry->d_name,argv[2])==0) printf ("%s\n", entry->d_name); } //recursive call, can post if needed I'm…
Prototype
  • 114
  • 1
  • 9
-1
votes
1 answer

Using Matlab Regex to insert "disclaimer" at begining of multiple codes within multiple subfolders

I have a folder with multiple subfolders that all contain several files. I am looking to write a matlab code that will insert a commented out "disclaimer" on the top of every relevant code [c, python (.py not .pyc), .urdf, .xml (.launch, .xacro,…
johnmack12
  • 11
  • 1
-1
votes
1 answer

Batch file to output the list of files from a directory

I am trying to find the latest log file from the log directory in windows which has sub folders based on date I have to make a search of 1000+ keywords in a text file and find the match using the file name in keyword and output the path to a notepad…
user2834105
  • 67
  • 1
  • 1
  • 9
-1
votes
1 answer

process a list with specific name and extension in matlab

I'm trying to process a list of files that start with the same string, but only the .mat files. In my folder I have log files with names such as: CADS3P5Ph1_LKS_20141210_EVAL_103443_001.avi …
Mehmet597
  • 3
  • 1