Copy several files to the command prompt
I want to create a batch file copy several files that I specified a directory and use a command once. but when I tried to 'copy file1 + file2 + file3 destDir', it copies only the first file. I do not copy all of the files or the files whose names share a model. If the wildcard characters * and? does not apply here. What should I do to copy several files?
You probably want to use a command like this:
for /f %i in (list.txt) can I copy/b %i destDir
Where "list.txt" is a file that contains a list of the files that you want to copy and 'destDir' is the directory you want to copy. If you put this line in a '.bat' file, you may need to replace each character "%" to "%".
Or, if it's a short list of files, you could do something like:
for %i in (file1, file2, File3) can I copy/b %i destDir
HTH,
JW
Tags: Windows
Similar Questions
-
How to run a file through the command prompt window
I try to download a zip called Kindle Gen - file instructions say I should first extract it to c:\KindleGen and then run it through the command prompt window by typing c:\KindleGen\kindlegen (I ' v it not compressed)
The showsc:\Users\Barry prompt window > then I'v typed into it after the > but its not to recognize the path to the file.
Wonder if anyone can advise this as i ' v hurts?
Thanks Barry
I try to download a zip called Kindle Gen - file instructions say I should first extract it to c:\KindleGen and then run it through the command prompt window by typing c:\KindleGen\kindlegen (I ' v it not compressed)
The showsc:\Users\Barry prompt window > then I'v typed into it after the > but its not to recognize the path to the file.
Wonder if anyone can advise this as i ' v hurts?
Thanks Barry
If you have used Windows Explorer (computer) to create the directory in question (C:\KindleGen\) and extract the files in this directory...
Open a command prompt.
Type:
CD \KindleGen
Type:
DIR
Run everything you are supposed to run by typing the name.
-
Deploy WAR file via the command prompt
Dear all,
I had implemented a Service of Web PLSQL and deployed Oracle 10gAS.
I have the same deployment using the file. War and the deployment by using the command line. Is it possible... ? If Possible, how can I do this...?
Thanks in advance...Please also indicate what can I use the same command to deploy a .ear also file... ?
Take a look at the doc. He must show that the same utility and command can be used to deploy an EAR file. There may be a small difference in the syntax because you must specify the command - bindAllWebApps to say the Deployer to bind all web modules in the web site by default.
-steve-
-
Change the attributes of the file via the command prompt
Hello
I have just read and followed, Tricky300 answer to the previous question above on May 5.I want to remove attributes only reading of a folder named Musicmaster located on a memory stick in my E drive.This is a backup of my iTunes library.I have no problem to access this drive.I followed (I think) the solution, in the example given on the Microsoft site.I typed in the following attrib-re:\musicmaster\*.*/s"" After pressing enter the message I get is, "path not found".What am I doing wrong pleaseThanks in advance.Jeff KennedyI followed (I think) the solution, in the example given on the Microsoft site.
I typed in the following attrib-re:\musicmaster\*.*/sPerhaps a fault of typo, but you must leave a space between the command, switches, and the full path:
attrib - r e:\musicmaster\*.*/s
attrib [space] [-switch] [space] [path] [space] [switch]
John
-
How to print output in a single file at the command prompt
Hi all
I am running windows, 11.2.0.1 64bits.
want the output to a single file below.
dBV file is D:\ORACLE\ORADATA\ISITEPROD\SYSTEM01. DBF blocksize is 8192 logfile = D:\Newfolder\logs\New\SYSTEM01. DBF.log
dBV file is D:\ORACLE\ORADATA\ISITEPROD\SYSAUX01. DBF blocksize is 8192 logfile = D:\Newfolder\logs\New\SYSAUX01. DBF.log
dBV file is D:\ORACLE\ORADATA\ISITEPROD\UNDOTBS01. DBF blocksize is 8192 logfile = D:\Newfolder\logs\New\UNDOTBS01. DBF.log
dBV file is D:\ORACLE\ORADATA\ISITEPROD\USERS01. DBF blocksize is 8192 logfile = D:\Newfolder\logs\New\USERS01. DBF.log
dBV file is D:\ORACLE\ORADATA\TS_SITE. DBF blocksize is 8192 logfile = D:\Newfolder\logs\New\TS_SITE. DBF.log
I don't want 5 different .log files, (it is a batch file content), I want only 1 file output (with the data of all the outputs of annexed cmds).
Please guide me.
Kind regards
Syed
Hello
This could help you.
https://bitbach.WordPress.com/2009/08/14/redirecting-DBV-output-to-a-file/
-
How to convert a file Available from the command prompt
I have the need to create or convert a file from the command prompt line and store format Available, but not how to do it
Not possible with Acrobat.
-
Why I can't change the default program from the command prompt?
Accidentally, I changed the default program to open the .py (Python script) files at the command prompt, now I can't change it back even in the Control Panel, the check box is gray. Also I tried the registry editor, I do not have the NoFileAssociate file.
If someone could help that would be great!Hello
This problem occurs when Windows thinks that the application already exists in the list. Change the name of the application may fix this problem. Please try the following if you do not want to rename python.exe
Method [1]: Use the registry to change the application Associations
ATTENTION: It is recommended that you create a restore point before you proceed- On the start menu, insert the following text and press ENTER: regedit.exe
- Delete the following key
Python.exe HKEY_CLASSES_ROOT\Applications\
Thank you
Have a nice day :) -
generate the fmx via the command prompt
Hello
I use Oracle forms6i, Oracle Database 10 g and Windows (OS).
Is it possible to compile the FMB file via the command prompt.
And then I need to move the files to the server fmx via the command prompt.
Thank you
Eliane.
Published by: Sophie on January 24, 2012 17:20Eliane says:
HelloI have created the batch file as directed by your code and I changed only the useridn/password@db.
I have run the package
But I can't find the fmx file.Sorry I post the compiler in batches of 10g
Go where u run the batch file? It should be in this folder where you .fmb exist.
So then do not work. Add the path before the ifcmp60.exe
This is the compiler 6iEcho compiling forms .... for %%f IN (*.fmb) do C:\ORANT\BIN\ifcmp60.exe userid=mail/tti@ait module=%%f batch=yes module_type=form compile_all=yes window_state=minimize ECHO form compilation complete
change the path of the ifcmp60.exe you have
Hope it works for youIf someone useful or appropriate, please mark accordingly.
Published by: HamidHelal on January 24, 2012 20:12
-
How to copy Dir or name of command prompt file in .txt or .xls file?
How to copy Dir or name of command prompt file in .txt or .xls file?
To copy text in the command prompt window to the Windows Clipboard:
1 right click on the title bar of the window.
2. click on Edit > Mark .
3. highlight the text desired with the mouse.
4 right click on the title bar of the window.
5. click on Edition > copy .
Paste the text into a file.
-
Files corrupt in the command prompt
original title: FILES CORRUPTED IN THE COMMAND PROMPT
SIR IN THE COMMAND PROMPT, WHEN I PUT THE COMMAND SFC/SCANNOW AFTER 100%. I FOUND THE ERROR THAT THE FILE IS CORRUPTED AND COULD NOT FIX IT PLZ HELP
Hello
Please do not type in capital letters as it is difficult to read and considered to be shouting.
Many files that SFC cannot resolve are not important.
Start - type in the search box-> find CMD in top - click right on - RUN AS ADMIN
put the command from below (copy and paste) in this box and her and then press ENTER.
findstr/c: "[SR]" %windir%\logs\cbs\cbs.log > sfcdetails.txt
who creates the sfcdetails.txt file in the folder that you are in when you run it.
So if you're in C:\Windows\System32 > then you will need to look in that folder for the file.
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
in Windows Vista
http://support.Microsoft.com/kb/928228This creates sfcdetails.txt in C:\Windows\System32 find and you can post the errors in a message
here. NOTE: there are probably duplicates so please only post once each section error.You can read the newspaper/txt files easier if you right click on Notepad or Wordpad then RUN AS ADMIN - then
You can navigate to sfcdetails.txt (in C:\Windows\System32) or cbs.log (in C:\Windows\Logs) as needed.
(You may need to search sfcdetails.txt if it is not created in the default folders.)I hope this helps.
Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right. -
My computer guard goes to the command prompt and then closing when I try to open .exe files
When I try to open an .exe file continues to go to the command prompt the closure as soon as it appears, as his tent to open a java file. After that, it showed all my icons symbol of java and wont open. The only thing that EOP are java files. I need to know if I should consider, or if it can be fixed manually.
Hi MinecraftDude,
Did you recent hardware or changes to the software of the system?
You can consult the following article and the chek if it helps.
Hope this information is useful.
-
HELP-I can't open things such as the restoration of the system or the command prompt, etc without being asked to "choose the program you want to use to open this file"
so boringHello
Download and run the fixit tool from the link below and check if this solves the problem.
http://support.Microsoft.com/kb/950505
Kind regards
Afzal Taher
Microsoft technical support engineer -
"Can not open AsIO.sys (2)" I get this message when I log in after a reboot. I have search for the file, but can't find it with the research or the command prompt. What do do in this file, and can be created and put into the appropriate folder?
Hi Jack,
This driver belongs to AsIO.sys Asus Probe. Try to uninstall Asus Probe and if you need, install again. If this does not help, uninstall Asus Probe and other tools of control such as Speedfan. Open the registry (regedit.exe) editor and search for AsIO.sys and remove all the entries that you can find.
André
"A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/ -
How to delete files using the CMD prompt
I have problems with the Vista boot, to the point that I can't even get into safe mode or use the Vista disc to reinstall Vista. However, after searching several forums, including this one, I found instructions in order to use an ide cable to usb to connect my hard drive to another computer. In doing so, I was able to access all files on the hard drive, so it seems that it's an OS problem, rather than a hardware problem. Positions listed several files in Vista to remove via the command prompt which seem to be the cause of the problem I'm having, but when I try to do, I get a message that says: 'access denied '. How to remove the files of Vista in this way? A few messages mention "taking possession" of these files, but he was very confused (and tedious) way they described. is there a simple way to layman to delete these files?
Thanks in advance for your help.
"Access denied" means that you were NOT in the administrator command prompt.
Right click on cmd > click on Run As Administrator > now continue with what you have to do... For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.
-
Command at the command prompt to schedule tasks?
Hello
I'm hoping to network two Windows PCs together, an XP and Win 7, in a homegroup and using the XP computer as a backup for files that I have worked on throughout the day.
For the moment, the XP computer, which has a hard drive of several hundred GB, is inactive.
However, what I didn't do, is copy a file after the other every day to the XP computer: a Word document, a picture, a movie, then another Word document, then a Notepad file, etc.
I understand that I can use the command line command to tell Win 7 to automatically copy all files worked during the 24 hours, every 24 hours to my XP computer. I guess I would need to write a script of backup for this copy and overwriting of files on the XP computer, but I don't know how to do this.
Any advice, please?
Thank you
Did you read this in my first reply here?
Here is a guide to the networking of the different editions of Windows:
"Networking of computers running different versions of Windows.
Maybe you are looking for
-
Flash video stops playing after 10-12 seconds
Not sure when this started, but the videos now only play for about 10-12 seconds at a time. No crashes just breaks down, no errors, and it's only video. I can jump to another point in the video, and it stops after 10-12 seconds from there. I'm on the
-
Satellite S50-B-14N - messaging problem
When I go to the start page, then tap the email, I've always been able to access my emails, since last week I can no longer do and have to connect to BT - someone else knows it?
-
MacBook Pro A1278 starts with black or white screen
Please help, my 13 "Macbook Pro, circa 2011 displays a white screen briefly and make sound boots, then goes to a white screen. I tried to reset the PRAM a couple of times, no luck, reset SMC strikes did not help. Can anyone offer additional troubles
-
Need help with the events of user base in state machine example in queue
I wrote a small example queue state machine to try to teach myself about the creation and use of the user events. The purpose of the machine is periodically pick a number (I do now with a control instead of a generator of random numbers for troubles
-
HP Pavilion G7 - 1316dx reset password Adninistrator?
I turned on the lap top yesterday and he asked my administrator password or power on password. I entered what I thought it would be, and after 3 times, it disables the system. It gives a code< 55627001="">. Does anyone have an idea on how to reset. A