create a batch file

March 4, 2009 at 23:16:28
Specs: Windows Vista

I am new to batch programming and need some expert help. Here is what I would like to do:
1. I put any type of some files in one folder
2. Now I want to create a batch file in such a way that as I run the batch files it should copy all the files in that folder should copy in the specified different different folders
I kept both specific file & batch file in one folder & the program of batch file is as below:

Copy D:\uday\AWEMAN32.DLL c:\windows

3. But the problem is as I change the location of the directory “uday” the batch file does not work.

So please help


See More: create a batch file

Report •


#1
March 4, 2009 at 23:50:48

:: If you want to specify the source directory:

@echo off & setLocal EnableDelayedExpansion

set /p src=src ?

copy d:\!src!\AWEMAN32.DLL c:\windows


=====================================
If at first you don't succeed, you're about average.

M2


Report •

#2
March 5, 2009 at 12:07:20

go to my utube www.youtube.com/robjohnb95 and look at my 5 batch tutorials


p.s i know do C++ with visual basic


Report •

#3
March 5, 2009 at 19:42:15

</b> Edit: thanks judago

QUOTE: I kept both specific file & batch file in one folder & the program of batch file is as below:
Copy D:\uday\AWEMAN32.DLL c:\windows

Copy "%~dp0AWEMAN32.DLL" c:\windows
or better yet
Copy AWEMAN32.DLL c:\windows


Report •

Related Solutions

#4
March 5, 2009 at 22:15:54

bold

</b>
I just couldn't help myself. It may be a good idea to close html tags when you use them....


Report •


Ask Question