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

get list of files and folders to table format in CMD

I have read this thread, which helped, but doesn't answer my specific question. I'm hoping someone can help. I am trying to export a CSV file with TWO COLUMNS of data. Column 1 is the actual filename (with extension), and Column 2 would be the…
Tim S
  • 91
  • 3
  • 13
0
votes
1 answer

What device does the cmd command 'dir' use?

Sorry for the unclear question! The command prompt command 'dir' lists all files and directories in a directory, as you probably know. I am reading "Subverting the Windows Kernel: Rootkits" at the moment. One example of code in the book hides TCP…
AWSM
  • 78
  • 6
0
votes
2 answers

Python application directory strucuture (Linux)

What is the best practice to structure the python application when installed to the system as a rpm/deb package? The app code is mostly written in Python, and there are some shell scripts, configuration files and log files. I was thinking to have…
user921176
  • 91
  • 1
  • 12
0
votes
1 answer

How to use the list files in a given directory via batch file without showing the full path?

I have searched for this everywhere so I hope it has not already been asked, but I have a batch file where the user can write his / her own 'scripts' if you will. When the batch file is ran for the first time it will make a directory under…
sociallymellow
  • 155
  • 1
  • 2
  • 14
0
votes
5 answers

Rename more than one directory at once

I have bunch of directories such as…
add-semi-colons
  • 18,094
  • 55
  • 145
  • 232
0
votes
1 answer

List files with MATLAB which are not .m files

I can list all .m files in the current directory with this code: dir(fullfile('.', '*.m')). But how to change the regular expression that only files will be listed which have not the ending .m (files without "ending" should be included as…
K B
  • 1,330
  • 1
  • 18
  • 30
0
votes
1 answer

use DIR command output in batch

I use command : dir D:\ /b /A:D-H and output is for example: Photos Wallpapers My Personal Data and.. I want to set varialeble on this folders as: set SOMEFOLDER=folder1 set SOMEFOLDER2=folder2 and ect.. How can I do this?
GM12221222
  • 21
  • 1
  • 5
0
votes
1 answer

Limit shown directories in PHP

How can I show a folder's limit in a directory using PHP? The code below shows all folders but I only want to see 10 folders. function folderlist() { $startdir = './'; $ignoredDirectory[] = '.'; $ignoredDirectory[] = '..'; …
user1796164
  • 131
  • 1
  • 4
  • 14
0
votes
2 answers

Windows Batch File to count all files and subdirectories but not list

I'm need to essentially get the summary of "DIR/s" but without listing. I want to be able to see the number of files/folders/bytes used and bytes available - and pipe all that to a file?
0
votes
1 answer

DIR /p pausing not working...?

I am having a problem. I need my code to list all the text files in a big directory and pause at each full screen. I set it up so that users will be able to input the number that is listed beside every txt file in the list but the /p parameter…
Gorgrak
  • 15
  • 6
0
votes
1 answer

How to know with Ruby if a path is outside another?

I'm building a little script and I'd need to know some way of testing if a path (a string for example) is outside another path (another string). For example: /some/path and /some/path/file.rb would return false because file.rb is inside /some/path…
pmerino
  • 5,900
  • 11
  • 57
  • 76
0
votes
3 answers

Testing directory suing S_ISDIR,But it doesn't work

I'm studying c programming in linux,and I wrote this to output information about the files and directories like the standard tool "ls" with "-l",everything works fine except the macro S_ISDIR,Here is my code. Additionally,my os is mint 14…
user1198331
  • 139
  • 2
  • 3
  • 10
0
votes
2 answers

How do I delete directories for a specific time period (say older than one month) using dos command?

I am trying to delete directories older than one month from a batch file. I am able to list directory names using: dir D:* /A:D-H But not sure how can I delete them for a specific time. Can somebody help me with this?
0
votes
2 answers

Wicket - Create new folder per session

I am using apache wicket 1.5 and when a new session is initialized I want to create a new temp folder: Example: Session_1_connect -> create_temp_1 Session_1_disconnect -> delete_temp_1 A new user logs in: Session_2_connect ->…
David Sonnenfeld
  • 688
  • 5
  • 17
  • 31
0
votes
1 answer

Ant script giving class not found exception - why?

simple example build file
JGFMK
  • 8,425
  • 4
  • 58
  • 92