![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Posts: 52
Rep Power: 3
![]() |
Batch Question
i'm not sure if this is the right spot for this question but i wasn't sure where else to put it....
I'm trying to make a very simple batch file that will execute within a vb.net program i'm writing. I want to be able to click a button (in vb) and it will execute a batch file that simply copies one file in a folder location to another. I'm getting all these errors though that the file's invalid, then it couldn't find it. I'm not sure what i'm doing wrong here.... Example: defs.bin :: is the file example copy C:\Program Files\defs.bin C:\Program Files\My Program\defs.bin |
|
|
|
|
|
#2 | |
|
Expert Programmer
|
Quote:
copy [sourcefile] [destinationfile] When you put a space in "program files" it, doesn't read properly. It's why you are having problems. this is what you need: c:\Progra~1\file.bin Check this out : http://www.ericphelps.com/batch/lists/filelist.htm |
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Oct 2005
Posts: 52
Rep Power: 3
![]() |
Thanks for the info i read through the site but when i tried to make a slightly more complex batch file i kept getting errors....not sure what i'm still doing wrong. Actual files being used
COPY /-y C:\Program Files\EMC\Anti Virus Updates.bin C:\Program Files\Anti Virus Which i re wrote as : COPY /-y C:\Progra~1\EMC\Anti Virus Updates.bin C:\Progra~1\Anti Virus |
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|