Batch file program to copy folder from one drive to another.
Batch File copy files from CD to a folder
I'm using a batch file to copy files from a CD to a folder. This command works: copy *.doc foldername. But this command doesn't: copy *.docx foldername.
I even tried copy *.* and *.doc?, but nothing works. in other words, it seems that the batch processor doesn't recognize the newer word formats. Is there some work-around? Maybe I need to use a different batch processor.
MD in batch file running under admin privileges doesn't work
When I run the following batch file in Win7 with admin rights the MD command wont work, but if I run it without admin rights the MD will work but then Drive Image wont work (because it needs to run under an elevated UAC).
L is a network drive (LaCie NAS box). I give the .bat file admin rights by creating a shortcut to it and giving the shortcut admin rights.
From grazing the web it appears this is a known problem in Win7 but none of the suggested solutions I could find worked with my situation.
A key thing is I need the code in the same file as the set command does not persist between different cmd sessions ie I use the %folder% variable in both the MD and the Drive Image lines.
"C:\Program Files (x86)\Runtime Software\DriveImage XML\dixml.exe" /bc /tL:\DriveImages\%folder%\ /c2 /r- /s- /l
Open a file or folder
You can open a file or folder in Windows to perform a variety of tasks, such as editing the information in a file or making a copy of a file or folder. To open a file, you must have a program that is associated with it. Typically, this is the same program that was used to create the file.
Run batch file on selected directory through right mouse button
I have a batch file that cleans up any picked directory [removes files with specified extensions]
In XP I had it such that I picked a directory, RMB and chose the action.
The instructions to install this facility were: open any directory tools/ folder options.. /file types/file folder/advanced/new...
In Action type<name facility>, In Application used to perform action browse to location of batch file.
Now in Windows7 these instructions don't seem to apply as stuff is in different places. I can make the facility work by placing the batch file in a directory and running it, but this leaves the batch file to be removed and nothing as easy as it was.
Batch script for conditional copying and pasting
I came across the findstr batch command for searching for specific string in a file name. Can the same be used for reading folder names ? ie
I have folders like these:
these are all folder . the number after the '-' indicates a certain number which the user would enter . now I am taking two inputs from the user.
start = some_number
if start = 1 and end =3 . then my batch file should copy all files in these folders
to a certain location . ie the files in folder from 2001-001 to 2008-003
batch coping and renaming files
I have a bunch of folders containing photo sets, and each folder has a file named "cover.jpg" and I was wondering is there a program that will copy the "cover.jpg" fileand rename it to include the folder name where it was copied from so that I end up with a folder containing
where SET01 is the name of the folder from which the cover.jpg file was copied from.
I have a batch file on a remote server. if I use remote desktop to connect to this server and run the batch file it runs as I would expect.
However I need to run this batch file from my local machine, using its mapped network drive (example: z:\apps\batchfile.bat)
When I run it from this location it does not run successfully.
Is it possible to run a batch file from a remote server from my machine as if I was running it from the server itself?
Or is there other ways to get round this problem?
Windows Explorer runtime error
If I try to drag and drop an existing folder from one location to another, this causes an Explorer runtime error (see screenshot). Likewise, CTRL-C and CTRL-V of folder causes same error.
However, creating a new folder is no problem; copying/moving file(s) is no problem; and copying/moving file(s) from one folder to an existing folder is no problem.
Bottom line: Cannot copy or drag folder to new location (same drive or different drive). Running XPSP3.
Unable to open C: drive: The file does not have a program associated with it
I have a strange issue that developed after the install of SP-1 for Win 7. When I click on my computer, I double click on the C:\ drive innthe upper center of the screen and I get this error message.
"The file does not have a program associated with it for performing this action. create an association in the Defaults Program Control Panel"
Before SP-1 was installed I could double click on the small graphic of the C drive and it would expand to show the folders. Now I must double click on the left side tree of the computer>C Drive> sub folder that I want to access.
Also sometimes I get a error message saying the computer is looking for a PureHD.msi file but I can not locate this file. Can anyone offer any suggestions or ideas to resolve these two small issues. I have a Dell Win 7 32 bit Ultimate installed.
Using batch file to make directories based on file name
What I need is this:
1. Watch a folder.
2. When any file arrives, create a directory
(using the file name as the new directory name. Created at: Domain/Folders/filename/file)
3. Create a file named download.html, with this in this file:
a href = http : // Domain/Folders/filename/file
4. Store download.html in Folders/filename
5. Copy file from Watched Folder to COutput
6. Delete file from Watched Folder
Can this be done with an executable and a scheduler?
Windows 7 64-bit fails copying very large files in Windows Explorer
I have a very interesting problem: One user can't copy a very large file (~750MB) from one mapped drive to another mapped drive using Windows Explorer. Here's the specifics:
- Other users can copy this file just fine using Windows Explorer.
- If she logs into another machine, she too can copy this file.
- She can copy this file down to a local drive or a flash drive, and then copy the file up to the other mapped drive, using Windows Explorer.
- She can copy the file directly from one mapped drive to the other via the Command Window (DOS).
- Her machine is Windows7 64-bit. The machines that work are either 32-bit Windows 7 or Windows XP.
- Both mapped drives are on the same Windows 2008 R2 server and volume.
- If I log onto the server itself and copy the file, it works fine (and is very fast).
It appears that Windows will start copying the file, but the first time it goes to calculate the Estimated Time, it just fails.
All this points to some problem with Windows 7 64-bit copying large files in Windows Explorer. Alternatives to Windows Explorer probably aren't..
Synching or copying folder contents?
I started moving my music files from an old drive to the new computer. (The old drive is in an external USB drive case.) I got sidetracked on the project and now want to finish the task. But since then, I've added and deleted music from both drives. So . . .
Whats the easiest way to copy files from one folder to another, wherein, dupes are ignored, rather than overwritten? What I'm hoping to avoid is opening the source folder, and then drag-'n-dropping to the new, since the two folders won't show in the window at the same time.
CMD file processing creates a weird character...
I have a batch cmd file that calls a program three times, each time it generates a txt file. Then I use (MS DOS) copy to append the three files together.
At the end of the newly created combination file, there is a mysterious character that looks like a short fat pipe "|" . The command file takes two arguments,
The program meshUtil does certain things to the file depending on how many arguments are passed in. MeshUtil works correct. If I run JUST step three, it doesn't create the short fat pipe.
Its definitely created by the copy command. Unsure if it matters,
1) meshUtil %1 out1.txt
2) meshUtil %1 Xmax 2 out2.txt box
3) meshUtil %1 out3.k copy
4) copy out1.txt+out2.txt+out3.k %2
5) del out1.txt
6) del out2.txt
Explorer crashes why open Oops backup location
I have a folder on an external drive, which has the NTFS file structure,which opens with no problem with Windows Explorer. (The folder contains mostly .avi files).
I have backed up the drive with a program called Oops!Backup, with which I can open any other folder with Explorer without problem, and I also have the folder in question backed up with a Windows System Image.
However,if I try to open the folder from either the Oops backup location, or from the mounted System Image, Windows Explorer shows the folder contents for a split second and then crashes.
How to open a Batch file on startup?
Bat) on startup, but I want to use another method then placing it in the startup folder. Is there any way to start it using a program or changing a setting?
Drive sharing on a network
I have a new Windows 7 computer networked with a laptop running XP Pro SP3. On the 7 machine is drive D: containing two folders, each with multiple sub-folders and files. I have tried to share the drive with no success.
I have drilled down through all of the permission layers and everything is identical between the drive permissions and the folder permissions, with one exception: on the Drive Properties page the Share button is grayed out, while on the Folder Properties page, it is not.
I can open the folder on Drive D: just fine, but when I try to openthe drive itself, I am told I don't have permission.
lost HD partitions
I've really done it now. I've lost partitions on my HD:
1) I started using an external USB drive and backup program. It makes both Image and File backups
2) I have 3 physical HD’s in my computer. 2 came with the computer and the 3rd was from a previous computer ( Drive H: )
3) When I ran the backup program, it was, auto-configured to make an image of Drive H, but of course, it should make it for Drive C
4) I contacted support for the backup drive and they said there was no way to change the drive and that it selected the first physical drive for the image backup
5) I thought that odd since the two original drives, including drive C, naturally, came installed with the computer. The 3rd drive I added should not have been the 1st physical drive, but it should appear as Drive H, which it did.
The drive name was correct, but the computer saw it as the first physical drive.
Customizing Copy/Paste in Same Folder
A new and improved feature of Windows 7 is that when files are copied and pasted into the same folder, the copy file name is the name of the original with "- Copy" which makes it difficult to select just originals or copies.
For example: original file named "Contract-102.docx" copy is named "Contract-102 - Copy.docx
In Windows XP the word "Copy" was at the beginning of the file name. How do I get this rule changed to the Windows XP format?
Introducing a batch job on closing the computer
I want to introduce a batch file that will run when I do a shutdown. I want to do is use normal shutdown from the windows menu and when this runs it should run a given batch file before starting shutdown.
If I have a batch file does each line get initiated and completed before the next - if I run a sync job how can I ensure it is complete before the next line of the batch job is executed?
Folder Icons in External Hard drive Keep Changing!
I have all of my movies in a folder on a 1TB WD external hard drive. Each movie is in a folder with a custom icon (ico format). This has always worked well until recently; when the hard drive is turned back on, the icons return back into the default windows folder.
In addition to this, the size of the icons usually changes from large to medium, and sometimes even to list form!
-folder icons are located within the external hard drive
-running 32 bit vista
-could this possibly be because I have too many folders with different icons? (there are probably well over 100!