How To Make A Multiple Copy Batch File
May 30, 2011
Below is a batch file I created to copy all the files from a program called A5V5. This batch file works to copy the files to two different drives What I want to do is if the J: Directory is not availble (This is a flash drive) that it will copy to the E: directory which is a second HDD and not leave a "The system cannot find the drive specified" when the flash drive is not inserted.
@echo off
cd c:
cd program files (x86)
cd A5V5
cd Ranch Mobile, Inc
Copy *.* "E:Ranch Mobile" (This is a second hard drive for backup files only)
Copy *.* "J:Ranch Mobile" (This is a Flash drive that is not always inserted)
Pause
I like the way batch files work and I can do these simple ones but when it comes to doing the more complicated ones I am at a total loss.
View 3 Replies
ADVERTISEMENT
May 3, 2012
I have a folder with around 2000 files in it. I want to be able to copy certain files from this folder (normally around 40) and place them in a brand new folder, I want to be able to do this with nothing more than a txt file that has all the file names I need copying in it with every file name on a separate line.I receive around 10 new txt files each day so you can imagine how tedious it is searching through 2000 files, picking out the 40 I need, times a day everyday.To make things even more complicated, the txt files I receive don't always have the correct file names in them, maybe there's a misspelling or a word or two missing for some of the names. That's ok when I'm going through picking out the files I need to copy myself because I can normally tell which file is being requested, but I can't see it being so easy for a program or whatever to do, I'm guessing it'll need to have a search feature where it picks out the most likely file.I'd like it to be as automated as possible. I receive the txt file, make sure each file name is on a separate line then a program or script or whatever goes out and picks out the files (or most likely files for the name's that aren't exact matches) and copies them into a brand new folder (which I'd like to be the same name as the text file it's using to choose the files).
View 5 Replies
View Related
Dec 31, 2012
I am trying to make a batch file which echos text based on an input.Here is the code I have so far:
@echo off
set /p input=
If %input%=="hello" or %input%=="hi" or %input%=="hey" or %input%=="yo" or %input%=="hello?" or %input%=="hi?" or %input%=="hey?" or %input%=="yo?"
@echo off
[code]....
when I save the file and run it, it all at once echos the first three results, then tells me that 'else' is not an operable command and then the program closes.
View 5 Replies
View Related
Jan 22, 2012
If C: is the root of the virtual machine and U: is the USB stick, I can PERFORM "copy C:folder** U:folder", but that line in a batch file does not work. How can I fix that ?
View 4 Replies
View Related
Nov 10, 2009
I have a simple batch file to load multiple files with one click, but it's not working.
When I run it, it simply very quickly pops up the cmd dialog, which quickly disappears, and nothing is loaded.
I've tried 'running as administrator' - same problem.
File is xxxxx.bat
I've even tried the fail safe:
start /d C:\Windows\System32\calc.exe
and that doesn't work, so it's not a error in my paths... for some reason, it just won't load...
Worked in XP fine...
Is there a different technique in 7?
Basically, end result, want to open two programs with one click (one icon on taskbar).
View 1 Replies
View Related
Apr 28, 2012
I require a batch file or free utility that i can redistribute from my web site to other users, (gamers) that will copy the contents of a directory inside their game to a new location and re-name the directory at the same time. Something like this; Copy "GenesisVehicleruck diesel4tonbaker"to "GenesisVehicleruckdiesel4tonbutcher".The batch file needs to be run without the need for a command line box being opened, that is, if the user can double click on it or run it with a 'right click' that would be great. Problem there is, I maybe need an exe file not a batch file. The other part of the problem is that the folder to be copied may or may not be in the same location on every PC that runs the file. It may be the case that the 4tonbaker folder is on; [code] and I require the end user to have no need to know, just for the directory to be copied and renamed when and where it is found.If possible I then want the batch file to perform a second task. I want to distribute a folder, lets say it is 4tonbutcher and in that folder there are files lets say doc1.txt, doc2.txt and doc3.txt.On any given users PC 4tonbaker has these same named files but the content is different to the ones in my folder 4tonbutcher, I want to update the newly created folder, 4tonbutcher with the new txt files I distribute.
So, User downloads a folder called 4tonbutcher from my site.Batch file copies and renames a folder from a location on the users PC, "Genesis Vehiclesruckdiesel4tonbaker" to "Genesis Vehiclesruckdiesel4tonbutcher".Batch file copies doc1.txt, doc2.txt and doc3.txt from the downloaded folder to the newly created folder 4tonbutcher.
View 1 Replies
View Related
Apr 8, 2012
I am in the process of creating a batch file in Windows 7 and I would like to know if there is a way I can allow this to work with the user input of 'q' and 'Q' instead of just Q.
SET /P XX=Type Y/N, then press ENTER:
IF %XX% ==Q GOTO END
IF %XX% ==Y GOTO START
IF %XX% ==N GOTO END
View 4 Replies
View Related
Feb 2, 2013
How to make a batch file so that I can launch the ipconfig /all command right off my desktop. I know how to get to the command prompt and running, but I want to just put a shortcut and/or write a batch file with just a click. I can get the command prompt up. I open a new text file and type: C:Windowssystem32cmd.exe and then I save the text file to .bat and I click on it and my command prompt comes up. I can't seem to get ipconfig /all to come up at all.
View 4 Replies
View Related
May 4, 2011
I don't really know a better way to describe it, but I want to make a batch file that Task Scheduler can open at a certain time to close a chosen program.
View 2 Replies
View Related
Jul 1, 2011
I am trying to create a batch file that runs 3 other batch files. Right now, it works fine using the call command on each other batch file. However, these other batch files take awhile to run. and so the entire process takes a very long time, since each "sub" batch file is run only after the previous one is finished.I was wondering if there is a command or way to start a batch file fro the top-level batch file, then go on and start the next batch file before the previous one is finished. In other words, I want the sub batch files to run in parallel in the background. (similar to the '&' in Unix).
View 1 Replies
View Related
Oct 30, 2010
How to create a batch file that will move files based on the file type?My Requirement : I need a batch file to copy all .doc files in all my HardDisk to aremovable disk say (Z: drive) . Can anyone make it possible using a batch file
View 4 Replies
View Related
Aug 19, 2012
I'm modifying an old game.. including patches, and modifications. I want to make my own installer using WinRar but WinRar doesn't do registry keys. I thought I'd make a self executing batch file with all my needed registry keys and point WinRar to that during install.
View 3 Replies
View Related
Aug 21, 2011
Can someone show what a batch file would look like for use in Win7?Secondly the method for writing same batch file please.I want copy a file or files to the desktop before shutting down or rebooting and secondly copy same file/files to their original location after booting.
View 2 Replies
View Related
Mar 10, 2011
How could I run a batch file as an administrator without any user involvement. I just want when the file is clicked on to start running as an admin because it is copying files in the Programs directory and cannot do it without administrator privileges.
I have this... runas /noprofile /useran-SlateDan cmd but that requires me to have to type my password, and also just opens up a new shell and does not actually elevate the shell that it ran in.
View 11 Replies
View Related
May 27, 2011
To cut a long story short, I decided to try out a demo for a games which is coming out, and a friend gave me the file (it's a FREE demo mind you) and I didn't really like the game so I want to uninstall. How do I go about that?When I installed the game at first, it installed via one of those command prompt boxes.
View 3 Replies
View Related
May 4, 2010
is it possible to batch file name in Windows 7?
I have many videos and music that needs renaming often but i'm wary of 3rd party apps. I use to use rename-it! back when i had vista and xp but it hasn't been updated for Windows 7
View 9 Replies
View Related
Sep 15, 2010
How can I convert a batch file (script) into .exe file in Windows 7?
View 4 Replies
View Related
Oct 29, 2010
I tried to run this simple copy batch file and get no results. copy "c:aquariumaqrabases*.*" "N:"
View 4 Replies
View Related
Mar 16, 2011
I've made a batch file, but i don't know how to make it to always run as administartor. In .bat's file properties the option "always run as administartor" is grayed out. I have to right click it and then choose "run as administartor" from context menu. But i don't want to do it every time because it's annoying, is there any way to make run as admin if option is grayed out in properties?
View 1 Replies
View Related
Nov 23, 2011
I have 2 files that are in the same directory which I want to start one after the other.I have created a simple batch file like this which opens 2 files at the same time. ExampleStart Server.exeStart Game.exeIs it possible to leave say a 10 second gap between opening the Server.exe and Game.exe? Also is it possible to quit Server.exe when I exit Game.exe?
View 2 Replies
View Related
Nov 8, 2012
I am looking to convert cvs files to xls with a batch file.
View 3 Replies
View Related
Dec 22, 2012
is there a simple program that converts batch file to .exe file? I found this: Bat To Exe Converter - CNET Download.com But some users say its virus/malware. Can someone confirm that or give a diffrent link?
View 2 Replies
View Related
Mar 17, 2011
hei hava batch file that shutdowns my windows 7 pc at certain time everyday. (night). how can i get this to run daily. currently it runs on the day i "excute the batch file". for certain reason, i don't want to use the "Schedule Task" to do this.
View 11 Replies
View Related
Jul 25, 2012
I am looking for a batch file to log in to SharePoint web site which has credentialsNot sure on how to pas the credentials using Batch file
View 3 Replies
View Related
Nov 24, 2012
I've got this folder. In this folder are 643 sub-folders. I want to change the icon of all of those folders quickly, because doing it manually would be horrible.
Each folder has to have it's own icon. Not all the same one.
Currently the .ico's are in a folder with all the exact same name as the folders they need to be matched with. (if I sort by name, they'll all be in the exact same order, if that helps anything)
example: Mainfolder/A/ needs to have icon "A.ico"
So I've been kinda searching around and it seems things like this can (or not) be done with a batch file, and the desktop.ini. Or something..
View 2 Replies
View Related
Oct 27, 2010
I have a batch file that I used on XP to run an MMC that I created for common management tasks. In the MMC I have the ability to run regedit as a root forest domain privileged user (for remote system registry editing), password resets (using AD) remote computer management, and several web links for common sites the team uses. I did this so it was all in one place and it worked awesome in Win XP. When I run the batch file it reports that the directory could not be found.[CODE]
I have verified that runas is in the same place as in XP, as well as MMC. I have run the batch file with elevate access as well as run the command prompt with elevated access (in fact that was copied from an elevated command prompt). The account I'm running it on has admin rights on the box, though UAC is set, I own both the account this was run from and the "root forest" privileged account, this account is NOT a domain admin.This is all being done on Win 7 Pro in a large enterprise domain environmentthis batch file worked and still works on Win XP in the same environment.
View 4 Replies
View Related
Nov 17, 2010
Tried writing a batch file to open a few programs I use together regularly, but which I don't want all the time on startup.I've tried:
start �Maxivista� /d �C:Program FilesMaxiVista Pro ServerMaxiVistaAll.exe"
start �Netbeans� /d "R:Program FilesNetBeans 6.9.1in
etbeans.exe"
start �OfficeTime� /d "C:Program Files (x86)OfficeTimeOfficeTime.exe"
Start "WampServer" /d "R:wampwampmanager.exe"
[code]....
I've tried setting it to run as Admin, but the check-box is greyed out....
View 5 Replies
View Related
Jan 15, 2011
if servicename is running, do nothing.if servicename is not running, then start servicename, then record the date and time.based on my search [COLOR=blue ! important][COLOR=blue ! important]online[/COLOR][/COLOR], here is what I have so far.
[code]...
It looks like that the If statement is not working. Every time I run this batch file, it runs through all the command lines.and I got a error message said the service is already running.
View 6 Replies
View Related
Feb 28, 2012
I have a few different batch files setup to map drives depending what state the user is in that runs upon logon...I am wanting to make it silent, because users tend to close out of it sometimes before it has been completed. Or at least run it minimized?It is ran from active directory...I would create a script, but I would have to change each user in active directory
View 1 Replies
View Related
Oct 16, 2011
Is there a way to make a batch file that will automatically change Services? My main goal here is to 1 click edit all the services I change from disable,automatic, and delayed. I use the same settings for the entire family that I am tech support for so it makes life easier.
View 2 Replies
View Related
Mar 3, 2012
At work i use 2 different PDF viewing software. One is Adobe for editing and the other is Foxit for quick viewing. They have their pros and cons and so I use them interchangeably.For some work I will use Foxit for several hours at a time and only open something in Adobe on an as needed basis using the right click "open with" context. The opposite is true, for some work I use Adobe for hours and then use Foxit as needed with "open with" context.I want a registry file or some application that will enable me to simply double click on it and KNOW that my file association for PDF is now Foxit (or Adobe depending on what batch or registry file I double click on).I see there is "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrent Version ExplorerFileExts.pdf" which changes when I edit the file association in control panel. It does update, but I can't manually change the "UserChoice" Progid item. It changes only through file association in control panel.I realize there are some in HKEY_CLASSES_ROOT but they don't update when i update it in file association in Control panel.I don't know what to do or where else to look.It is tedious to have to go to the control panel -> file association manually.
View 1 Replies
View Related