dir Questions
16
On my old VPS I was using the following code to copy the files and directories within a directory to a new directory that was created after the user submitted their form.
function copyr($source, $...
7
Solved
I tried searching for a command that could list all the file in a directory as well as subfolders using a command prompt command.
I have read the help for "dir" command but coudn't find what I was ...
Skulk asked 5/3, 2013 at 1:55
8
Solved
I've been searching for the accurate answer to this question for a couple of days now but haven't got anything good. I'm not a complete beginner in programming, but not yet even on the intermediate...
Quamash asked 24/10, 2014 at 9:20
6
4
When I do a search:
dir /b /s *.txt
I get all files/folders with the extension .txt. But I also get them when they have an extension like .txtx. How can I search for the exact extension?
Shimmery asked 11/3, 2010 at 9:50
3
Solved
I want to use __dir__.
However, I can't find any good tutorial on how to set it up. I have my htdocs in Dropbox.
Does it work something like this?
define(__DIR___, 'd:documents/dropbox/yolo/swa...
10
Solved
the function dir returns an array like
.
..
Folder1
Folder2
and every time I have to get rid of the first 2 items, with methods like :
for i=1:numel(folders)
foldername = folders(i).name;
if...
3
Solved
Does anybody know if there is a Clojure equivalent for Pythons "dir". Basically I need to know the functions I can call on something or more specifically for java objects I want to know the methods...
9
Solved
when I write Python code from the interpreter I can type dir() to have a list of names defined in the current scope. How can achieve to have the same information, programmatically, when I develop J...
Estevez asked 2/4, 2011 at 14:33
7
Solved
dir/b > files.txt
I guess it has to be done in PowerShell to preserve unicode signs.
Rosenquist asked 4/4, 2011 at 9:30
19
Solved
I want to use ls in windows command prompt and make it run the dir command.
How can I do that?
Caritta asked 20/2, 2012 at 14:25
2
Is this by design?
Here's the code:
class FileRenamer
def RenameFiles(folder_path)
files = Dir.glob(folder_path + "/*")
end
end
puts "Renaming files..."
renamer = FileRenamer.new()
files = ...
3
Solved
Hey I'm trying to move multiple files from one folder to another. In the FileUtils line I am trying to search through all of the 4 character folders in the destination folder and then paste the fil...
3
Solved
I have created a small python script. With that I am trying to read a txt file but my access is denied resolving to an no.13 error, here is my code:
import time
import os
destPath = 'C:\Users\PC\...
4
Solved
within PHP (XAMPP) installed on a Windows XP Computer Im trying to read a dir which exists on a local network server. Im using is_dir() to check whether it is a dir that I can read.
In Windows Ex...
Vixen asked 20/7, 2009 at 14:11
2
Solved
Ruby's Dir.glob accepts a glob String that has some regular expression behaviour, but it doesn't have the full abilities of Regexp.
What alternatives in Ruby (including core and gems) are there t...
5
Solved
How could I display the subdirectories of a folder from largest to smallest using the dir command?
I've tried using dir /O:-S command, and although it sorts files just fine, it doesn't seem to ord...
Unrequited asked 18/8, 2013 at 18:47
3
Solved
For each OS there is a location for storing temporary data. It could be like: C:/Users/[user name]/AppData/Temp (or so). How can I get this path independently from OS with QT?
Pacesetter asked 22/6, 2010 at 7:44
4
Solved
In Python there is a built-in function called dir. This is used to get a list of all the attributes for an object.
I understand what it does, but I am confused about why it is called dir. How is t...
5
Solved
Here's my .rb file:
puts "Renaming files..."
folder_path = "/home/papuccino1/Desktop/Test"
Dir.glob(folder_path + "/*").sort.each do |f|
filename = File.basename(f, File.extname(f))
File.rename...
3
Solved
I want this script to list all folders that contains "deleted" in the folder name but not if they is in a folder called "done".
For exampel: list the folder if it's in C:\temp and if it's in C:\te...
Urial asked 22/3, 2013 at 10:53
4
I want to get the exact size of a particular dir in linux through a C program.
I tried using statfs(path,struct statfs &) but it doesn't give exact size.
I also tried with stat() but it returns...
4
Solved
I need to list the subfolders inside a folder using Matlab. If I use
nameFolds = dir(pathFolder),
I get . and .. + the subfolder names. I then have to run nameFolds(1) = [] twice. Is there a b...
6
Solved
I want a simple solution for list of folders and size of them in either txt or csv format.
I use this code for folder list
dir C:\Temp\*.* /b /a:d > C:\folderList.txt
current output
<<...
Staton asked 11/2, 2014 at 19:26
3
Solved
For example, I have the folder d:\temp\ and four word document files in it (.doc)
I know that
dir /b "d:\temp"
will give me
File1.doc
File2.doc
File3.doc
File4.doc
But how can I do it so tha...
Nina asked 26/1, 2015 at 19:13
1 Next >
© 2022 - 2025 — McMap. All rights reserved.