1
vote
1answer
643 views

Automate directory tree creation based on date

Hi and thanks in advance. I'm new to batch scripting and would like to perform the following action daily in my server. I need to make sure the directory path year/month/day exists in a given ...
2
votes
1answer
190 views

Import from List - Batch file

Ok here is the scenario. I am trying to figure out a way to copy users' docs and settings (Favorites, My Documents and Desktop) to a network location as a backup for decommissioned drives. My problem ...
0
votes
1answer
799 views

batch move for different file types to different folder name

I have files containing in C:\foldername1\Files\soandso1.mkv C:\foldername2\Files\soandso2.mp4 C:\foldername3\Files\soandso3.avi I want to move the .mkv, .mp4, and .avi back to it's parent folder, ...
0
votes
1answer
670 views

How can I move files between folders and subfolders using a Windows script?

I am moving .jpg files from a directory and its subdirectories on a daily basis and then deleting them. To make this easier I created 2 batch files: One that moves the files and one that deletes them. ...
0
votes
3answers
2k views

Count the Number of Characters in a Full FIle Path?

I need to be able to count the number of characters in a full path to a file in windows. How I am currently accomplishing this task is as follows: Open a command prompt cd to the directory in ...
0
votes
1answer
98 views

Create a folder.jpeg for videos from batch script

I want to be able to run a batch file and it looks in all the folders within directory and creates a folder.jpeg for each flv it finds in a folder. I have this script that works but it puts the ...
0
votes
7answers
4k views

Trying to hide a folder and unhide it in the same batch file with the attrib command

I am trying to hide a folder with a batch file, using the attrib command and I also want to unhide the file with the same batch file. can i do this as a single batch file? or do i have to call another ...
2
votes
6answers
5k views

How to list all files on all hard drives with output in MS-DOS batch?

How can I list all files (including system and hidden) on all hard drives (not removable drives)? I think in something like a: dir -a -h *.* /s > file.txt but this is for the specific drive ...
0
votes
2answers
2k views

Looking for batch automation program to reorganize/move/sort files into a new folder/directory structure based on file name content (Windows)

I have music files that already have artist name and title in the file name. However the files are currently not well organised in folders. I don't require audio-fingerprinting. Is there a program ...
1
vote
3answers
2k views

How do I create multiple folders with a batch file?

I need to create a folder (called "visitor") in every folder of one main folder. For example, my structure is this: \idontknowthename1\ \idontknowthename2\ \idontknowthename3\ \idontknowthename4\ ...
0
votes
1answer
899 views

Add a new folder to each subfolder

I have main a folder say E:\donuts and there are hundreds of folders inside it. e.g. E:\donuts\yellow\ E:\donuts\green\ ... E:\donuts\blue\ I want to create a new folder in each subfolder simply ...
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 ...
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
2k views

How to copy directory structure, by only two levels but not the third?

From XP's Command Prompt, I am using XCOPY to copy directory structure of s:\bloo\"[8family]\"[30-40genus]\"[5species]\ and want to limit the structure to just the genus and families, and ignore the ...
0
votes
1answer
358 views

How to distinguish folders from files in a batch script? (Or how to copy & rename-timestamp them indiscriminately?)

I want to create a batch file to copy files or folders in a specified directory and append the date and time to their names. Here's my actual code: @echo off Set _bpath=T:\Backup\ if [%1]==[] goto ...
3
votes
3answers
11k views

Script to create folders in multiple directories using YYYYMMDD date as the folder name

At work every morning I have to create multiple file folders (using a YYYYMMDD date format as the file folder name) in different directories across our network for various departments. This is a real ...