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

How to append path and filename to output

Background I am searching a large directory for files with certian strings of characters in their names. I only want to know if the files exsist in said directory. Problem Description Right now I am inputing the following code into windows 7 cmd…
user2444074
  • 137
  • 3
  • 6
  • 14
0
votes
1 answer

Python listing directory without errors

I recently started making a program for a friend and when I try to make a directory lister with user input I cant figure out how to handle the error. Directory Example Users Prefrences Memos How do I make it so that is shows an error like 'Invalid…
Freetech
  • 11
  • 2
0
votes
1 answer

PHP How to display "Text Empty" if all files in directory are empty?

Assume in my directory "my_dir/" contains files below: file1.php file2.php file3.php ... And assume each files is not empty..
Ajie Kurniyawan
  • 393
  • 2
  • 18
0
votes
1 answer

php list indents or doesnt link

I am using this code to list all the files in a Dir:
Marriott81
  • 275
  • 2
  • 16
0
votes
1 answer

Batch Ftp: How do I set the local download directory dynamically?

What i'm trying to do is this. 1) Create a Directory with the date as its name. 2)Download Contents of a Folder on a server into the directory that's just been made. This is what i've done so far: execute.bat: @echo off for /f "tokens=1* delims="…
0
votes
2 answers

Recursive directory link building

After a little help I have this recursive function that does its job well, however I need it to create me a link to files. At the moment the function can only store $dir/$file.php and I need it to create the full path as it loops. function…
andrew hutchings
  • 343
  • 1
  • 5
  • 18
0
votes
1 answer

How to hide . and .. folders in C?

I'm trying to list all folders and all files of a folder with the language C. This is the following code: #include #include #include #include int main (int argc, char *argv[]) { struct dirent…
Lord Rixuel
  • 1,173
  • 6
  • 24
  • 43
0
votes
1 answer

Multiple commands in a batch file result in one line

How can i write batch file that stores result in a file in just one line? I want these 3 commands to write in new file ex. txt.txt in first line. dir /b *.xml > txt.txt echo 2 2 >> txt.txt dir >> txt.txt I want result to be in txt.txt file like…
la lluvia
  • 705
  • 3
  • 10
  • 20
0
votes
1 answer

Excel \ OpenOffice Calc Dir function does not iterate thru files

My VBA-Code only returns the first file of the the directory while it should return at least 3 files, does anyone have a clue whats going on here? FolderName = Environ("UserProfile") + "\" FilePath = FolderName & "Invoice." &…
userX
  • 370
  • 3
  • 11
0
votes
2 answers

Batch: Concatinated filesnames into a CSV-File

I want all filesnames of the files in a folder and subfolders in a csv-file. For that I wrote a batchscript which works just fine: set "Folder=N:\myFolder\mySubFolder\mySubSubFolder" dir /b "%Folder%">"Z:\worx\filenames.csv" The content of…
0
votes
1 answer

Windows CLI: Find file with dir /s/b in a specific folder

I'm trying to locate a file and get the whole path of it. For this I wanted to execute the command: dir "install.log" /s/b The problem is, the command only searches inside the current directory and subfolders, but I want to look through the whole…
0
votes
1 answer

PHP - Make Directory Code Not Working

I am having a problem with some PHP code and I cannot seem to understand why it isn't working. So, to cut a long story short I'm creating a social network site and users are allowed to upload their own profile picture. To disallow other people to be…
Buddy Log
  • 29
  • 3
0
votes
1 answer

Regarding dir()

Initially I was trying to find dir(re) but realized I had quotes. Edit for clarity: Wouldn't "re" be a string? So dir("re") == dir(string)? The output isn't the same. That is essentially what I am wondering. Edit for comments: I might misunderstand…
rotsner
  • 642
  • 3
  • 6
  • 23
0
votes
1 answer

Characters are printed instead of listing dir

I'm trying to list the files in my directory. The directory is /home/user/Desktop/Test/ Within Test, there are 3 folders, a,b,c and within each of the folders a,b,c there are 10 gz files numbered in order 1-10 import…
Jeugasce
  • 197
  • 1
  • 3
  • 11
0
votes
1 answer

Converting multiple gz file within subdirectories into csv

I have many subdirectories in my main directory and would like to write a script to unzip and convert all the files within it. If possible, I would also like to combine all the CSV within a single directory into a single CSV. But more importantly, I…
Jeugasce
  • 197
  • 1
  • 3
  • 11