0
votes
3answers
98 views

How to delete directory named “..”

On windows 7 I'm having this issue deleting a folder named ".." I have a folder names ".." located on my desktop When I run in the CMD the command as follows: rmdir /s ...
0
votes
1answer
105 views

Robocopy: copy files preserving folder structure but adding a subfolder

I need to copy a folder which contains subfolders with files to a shared folder on another machine. During that the script should create a custom sub folder in each destination folder and place files ...
0
votes
2answers
370 views

compare two directory (each with multiple sub-directory and folder) and find files that are not present in either one of them in windows

I want to compare two directory (including subfolders) for files (for example pictures) in two separate drives. I have thousands of files and are hidden inside subdirectory and folders. Small: ...
1
vote
1answer
286 views

RoboCopy Log File Analysis

Is it possible to analyse the log text file outputted from RoboCopy and extract the lines which are defined as "New Dir" and "Extra Dir"? I would like the line from the log contain all the details ...
0
votes
1answer
365 views

Open last modified file from a folder through command prompt

I have a folder which have some log files. I want to open the latest log file through command prompt i.e. the file having the latest modified date/time. I am able to go to the folder through command ...
0
votes
2answers
97 views

Delete folder collections use command prompt (.bat file)

I have folder APK into APK different included as: framework-res,MyFiles,SystemUI,twframework-res,etc... APK\framework-res\res\values-in APK\framework-res\res\values-vi APK\framework-res\res\values ...
0
votes
0answers
75 views

vim cannot open absolute directories from command line

Running vim 7.3 on CentOS 5. Cannot open directories from command line, except ".", so this does not work (vim opens, but just shows a blank buffer): $ /usr/bin/vim /tmp But this works fine, giving ...
0
votes
1answer
81 views

How to hide a directory and its contents on Centos

A quick Google search did not clear up my issue. I need to hide a directory on Centos 6. I want to do that because I'm running the command tree to print the tree directory structure, but I don't want ...
0
votes
0answers
87 views

Renamed folder still shows up in Explorer - How to clear Windows Folder Cache?

I have renamed "Downloads" folder to "OldDownloads" from my D: Drive, and when I issue dir command in command line, I see that Downloads folder is renamed to OldDownloads and when I try to issue ...
0
votes
2answers
831 views

Command line (cmd.exe): how to extract folder's security settings

I'd like to know whether it exist a command to show security settings (group names / level of access not necessary needed) of the folder. I tried to google but no success :D Thank You all in advance. ...
0
votes
0answers
36 views

How can I un-concatenate a bunch of files?

I accidentally made a backup of folder using "copy folder folder_backup" and got a file called folder_backup. It contains all the bits of the folder. And I accidentally deleted the folder. How do I ...
0
votes
1answer
137 views

indexing files in folder and use this index

I'd like to list and index files (video files such as .mp4, .avi, ... in my case) in a directory I used : setlocal disableDelayedExpansion for /f "delims=" %%A in ('forfiles /s /m * /c "cmd /c echo ...
2
votes
2answers
65 views

How do I investigate commands being run when changing directories?

I see “awk”, “find”, “sed”, and “which” momentarily appear in my Terminal window's title when changing directories.  (And not all of these always appear and there could be some I'm missing; I imagine ...
1
vote
2answers
80 views

List files with no linebreaks

I have a directory with a bunch of folders in them. I want each folder to create a text file that lists all the files in that folder. The format to list files should look like this: "001.jpg" ...
3
votes
2answers
128 views

Accidentally blocked myself out of my private UNIX directory

I used the following command to see who had permission to my directory. fs la I then wanted to block someone out, so I used the command (and accidentally used my username instead of the person I ...
0
votes
1answer
1k views

How to create a batch file to delete sub folders and keep files?

I have a folder on my Windows system with the following contents: c:\folder\folder1 c:\folder\folder2 c:\folder\folder3 c:\folder\folder4 c:\folder\folder5 c:\folder\folder6 c:\folder\A.bat ...
3
votes
1answer
1k views

100% reliable directory copy on Windows systems (NTFS)

Is there a directory copying method for NTFS that can copy a directory 100% accurately, every time, with every single file, sub-directory, permission, attribute, and symbolic link / junction intact ...
0
votes
2answers
377 views

How to filter out .svn-base files from DIR command output?

I was wondering how I could go about doing the following (in Windows) I need to examine the total number of characters in the full path to everything in c:\directory and all subdirectories. Here is ...
1
vote
2answers
259 views

Not able to output to file in the Windows command line

In the following code, I need to take the path and size of folder and subfolders into a file. But when the loop runs for the second time, path and size are not getting printed to the file. size.txt ...
5
votes
2answers
14k views

How can I list directories and their sizes in command prompt?

I would like to see sizes of subfolders in a folder, similar to linux du -sh command. How can I list directories and their sizes in command prompt?
0
votes
1answer
72 views

Windows “…” directory [closed]

I noticed something weird today. On the windows command prompt these are all valid: cd ..... cd .... cd ... these are the more well known versions of parent dir and current dir cd .. cd . What ...
1
vote
1answer
290 views

Concatenating many files into one

I currently have this command: copy /b *.txt newfile.txt But I want to include all files with folders as well. How can I do this? Is it possible to add this to Apache Ant as well? I also ...
1
vote
2answers
3k views

How can I undo an “RD /S /Q <path>” command prompt command?

I accidentally deleted an important folder I had on my Windows 7 desktop using the administrative command prompt command listed as: "RD /S /Q "C:\Users\Robby\Desktop\Pictures&Things" I ...
1
vote
2answers
525 views

How do I copy only subdirectories but exclude other files in Linux?

Here is my directory structure: /home/folders/test (some directories) and files test.xml test1.xml test.js images (directory) /home/folders/test/images/( some directories ) and files I have to ...
1
vote
2answers
2k views

Cannot Delete an Empty Folder in Windows 7

I've used this question's answer by user "Moab" to give myself permission to delete an empty folder, so that I no longer get "accessed denied". However, now when I try removing this folder, I get a ...
2
votes
4answers
1k views

Finding subdirectories inside all directories with the same name

I want to run a command to: Find all directories named "inc" under a folder "X". List all the subdirectories under each "X/.../inc/". Redirect the output to a file named "list" I tried various ...
1
vote
1answer
341 views

cd Command Linux and Mystery Flags

Platform: CentOS 6.2 Shell:tcsh I'm playing around with cd for a BASH script, and noticed the wondrous cd - option, but was left with many questions... Why the cd -? Isn't this redundant with cd ...
1
vote
2answers
317 views

“which” Program Requires Shell Refresh to See Newly Installed Programs?

Why does the Linux program which require you to refresh the shell (e.g. type tcsh in the terminal) to see new programs installed in your path?? I was baffled why I couldn't access a program, which ...
4
votes
3answers
152 views

Folder to be found using %folder-name%

As we can go to the temp folder by typing %temp% in the run Window.Is there any way to make this command work for our folders as well eg-If we have a folder say SUPER then i want this folder to open ...
2
votes
1answer
183 views

What command sequence can I use to delete directories but not their files?

How do I delete directories but not the files inside them? I have tried the following: rm -di /Users/arthur/Desktop/MyFolder remove /Users/arthur/Desktop/MyFolder? y rm: ...
8
votes
1answer
13k views

How do I find the size of a directory on a Unix-like command-line?

I know this is a very basic question, but I searched the web and did not find a simple answer. I'm sure it's some kind of two or three letter command, right?
6
votes
1answer
424 views

Linux: which is “most appropriate” directory to place an exectuable for all users?

A bit of newb question.. I usually install packages and don't worry about these things. But, now I have a one file executable CLI program (Kindlegen from Amazon). I want it to be in the path of all ...
3
votes
2answers
1k views

Delete locked file/folder from command line

It is easy to delete file or folder from a command line or a locked file or folder from a nice GUI tool like Unlocker. However is there a way to delete locked file/folder from a command line? Is ...
2
votes
1answer
240 views

How to remove a folder with a broken name?

I use Windows Live Mesh to keep my files backed up across many computers, but I have one folder (that I think came from a rar file), called px 2 (with what appears to be a space at the end). This file ...
39
votes
6answers
43k views

How to list folders using bash commands?

Is there any way to list just the folders in a directory using bash commands? ( as the ls command lists all the files and folders )
0
votes
1answer
667 views

Downloading an (apache) online directory locally using cli (wget …)

Not really a question this one - but alternative answers are certainly welcome! :) Sometimes I need to download files listed in an Apache directory listing, say as in: ...
0
votes
1answer
1k views

Setting CMD CD to the directory that the batch was run in

I'm trying to create a batch script that will open a program in a different environment (so I can make a portable version of it). I use this set APPDATA=%CD%\data to tell it to do that. The problem ...
12
votes
3answers
34k views

How do I delete directory trees via console on Windows 7?

I want to delete the whole content of a specified folder on Windows 7 via batch file. My problem is, that 'del' or 'erase' only deletes the files, not the folders and 'rmdir' or 'rd' Always deletes ...
3
votes
2answers
145 views

directory listing is showing “+” sign

In one of my directory listing I get following output: drwxrws---+ 7 sip sip 4096 Aug 5 13:25 USSDG I am the member of the group sip but I am not able to create any file if I ...
1
vote
1answer
186 views

Is there a fast method of changing directory to a symbolic links parent or source?

Say I have folder stucture: |- dir1/ | |- sub1/ | |- dir2/ |- sub1link -> /dir1/sub1/ and my current working directory is sub1link, is there a quick way to either: change directory to ...
5
votes
1answer
4k views

How to copy files inside several folders into another directory

I have 6 CDs with PDF files inside a lot of folders (Like Prep1, Prep2... and so on.) I need to copy all the PDF files inside folders to my C:\ and then burn them all. Is there a command in cmd ...
2
votes
2answers
745 views

Command Line print all file names in directory

I have a directory that contains about 3000 images, what I would like to do is to print out (to a file if possible or even to screen) the whole images names after doing some string formatting and ...
10
votes
3answers
6k views

Can I use the “start” command with spaces in the path?

I have a path like this: Y:\xxx\dd sss\aaa\ccc Y:\ is mapped to an FTP address. Now when I try to use start to open my folder I cannot. Command prompt makes mistake and goes to Y:\xxx\dd folder! I ...
1
vote
2answers
195 views

navigating to a folder shortcut

I have a windows shortcut to a folder, and want to be able to navigate to it in command prompt. Is there a way?
2
votes
2answers
8k views

Unix - List all directories and subdirectories, excluding directories without files

I would like to list all the directories and sub directories in and below the current path. Since I only wanted to display directories I came up with the follwing command: find -type d -exec ls -d1 ...
4
votes
2answers
2k views

Using “find” to list only directories with no more childs

How can only directories be listed, that do not have another child directory? Imagine a structure like /A /A/AA /A/AB /A/AB/ABB /B /C /C/CC /C/CC/CCC /C/CC/CCC/CCCC I would like to use find to list ...
6
votes
1answer
2k views

Setting folder icon in Mac OS X 10.6 via command-line?

I have a file.icns that I would like to set as custom icon for a folder. How can I do it from a script/command-line? The script is executed in the postinstall phase of a package installer. The ...
1
vote
2answers
6k views

Setting a user's home directory on Mac OS X (Server) from the command line

How can I set a user's home directory on Mac OS X Server using the command line?
0
votes
3answers
654 views

print directory using command prompt

Found this one: http://www.watchingthenet.com/how-to-print-a-directory-tree-from-windows-explorer.html But I don't know how do I do it and save the directory listing somewhere. What I want to do is ...
10
votes
7answers
4k views

Easiest way to get right-click “Open command window here” with admin priveleges in Windows 7

I don't want to install PowerToys, I'd rather a simpler solution for this specific problem. I've tried Ctrl+Shift+Right-Click. I've tried adding a registry script, but I get the following error: ...