dir

Windows 'dir' command, Order By Name AND <something>

Greetings, From the screenie below we can see a directory ordered by Name in Windows Explorer: *Edit: Didnt work -> * Link If I try the same thing in MS-DOS it orders by name differently - correctly: dir *.jpg /ON /B cubierta.jpg pag00.jpg pag06.jpg pag08.jpg pag09.jpg pag100.jpg pag101.jpg pag102.jpg pag103.jpg pag104.jpg pag105....

Dos DIR command output in various localized versions - HELP

Hey all, I have a strange (don't ask) need to see a few examples of a msdos (winxp cmd shell) DIR command for lots (some) of different localized versions of windows (eg. french, spanish, etc). The specific command I need is (note that this command is important... if you don't bother to use this command then don't bother to respond): d...

how to get the size of a dir programatically in linux ?

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 size as 4096 for any dir ! Please suggest me the way through which I can get the exact size of dir just like we get after "du -sh dirPath" comma...

php access network path under windows

Hey there! 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 Explorer I type \\\server\dir and that dir is being shown. When I map a network drive a can access it with z:\dir as well. In PHP I...

Using SAS Macro to pipe a list of filenames from a Windows directory

I am trying to amend the macro below to accept a macro parameter as the 'location' argument for a dir command. However I cannot get it to resolve correctly due to the nested quotes issue. Using %str(%') does not work, neither do quoting functions for some reason. The macro will work fine when the filepath has no spaces (eg C:\temp\wit...

Find windows folder programatically in c#

I am writing a program to kill and restart explorer but I don't want to hard code the location becuase some people install windows in diffrent places (for example i found someone who had it installed in the d:\ drive where the C:\ drive did exist but had nothing installed on it) I tried looking under Environment.SpecialFolder. but I don...

How do I read a directory as a file in Unix?

I understand that a directory is just a file in unix that contains the inode numbers and names of the files within. How do I take a look at this? I can't use cat or less on a directory, and opening it in vi just shows me a listing of the files...no inode numbers. ...

What why is 'dir()' named 'dir' in python?

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 this name related to getting the attributes from an object? ...

Windows command line search for exact extension with dir

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 But I don't search for .txt How can I search for the exact extension? ...

How do I copy files repository to new folder with PHP

I have a folder named "repository" in my admin folders. This folder holds 2 files: index.html and content.php. When a user creates a new page the php creates a new folder specified by the user then will need to copy the two files into that folder while leaving them in the repository. copy(file,dest) does not work. rename(file,dest) move...

MS-Access nested DIR - check if a file exists elsewhere whilst looping through a folder

I have used the DIR() command in Microsoft Access 2003 to loop through the files in folder A. This works fine, but I need to check if each file also exists in another location (folder B), and only process the file if it doesn't exist in folder B. The problem is that checking for the file existing in folder B also uses the DIR() function...

how to show all method and data when the object not has "__iter__" function in python..

i find a way : (1):the dir(object) is : a="['__class__', '__contains__', '__delattr__', '__delitem__', '__dict__', '__doc__', '__getattribute__', '__getitem__', '__hash__', '__init__', '__iter__', '__metaclass__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__str__', '__weakref__',...

C++: include all files in a directory?

How can one achieve what the following code is trying to do? #include "dir/*" ...

Qt - How to get the "Temp" dir for an arbitrary user?

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? ...

Unable to unset Read-only attribute of directory

Hi, I am facing a problem with directory attribute. I have a script that creates a sub-directory inside a given dir. For example, the script creates directory 'auto' inside G:\root\ The script then tries to MOVE a directory from a given location to G:\root\auto\ The problem is that when it tries to perform the MOVE operation, it get...

How to get a list of sub-folders and their files, ordered by folder-names

Can I use "dir" command-line to get a list of sub-folders and their files, ordered by folder-names, and not just file-names ? using dir /s/b/o:gn > f.txt I first get all sub-folders and only then all sub files, e.g.: d:\root0\root1\folderA d:\root0\root1\folderB d:\root0\root1\file00.txt d:\root0\root1\file01.txt d:\root0\ro...

create a sub directory in asset directory on run time in android.

hello guys, can anybody tell me please how to create a sub folder in asset folder at run time and copying the files from res folder to my assets sub folder. any help will be appreciative. thanks a lot ...