Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I know this is not the ideal place to post, but I need to know what is the
exact proper format to copy a file from one drive to another drive when the folder name contains a space in it. Example: I created a file called "Autocopy.bat" The command line goes as follows: xcopy c:\Folder\main.xls d:\Main Files\ The problem I'm having is the space between "Main Files" is not recognized by DOS. How can I format this so the main.xls copy is made to D:\Main Files ??? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Give a try to d:\"Main Files"\
Daniel I know this is not the ideal place to post, but I need to know what is the exact proper format to copy a file from one drive to another drive when the folder name contains a space in it. Example: I created a file called "Autocopy.bat" The command line goes as follows: xcopy c:\Folder\main.xls d:\Main Files\ The problem I'm having is the space between "Main Files" is not recognized by DOS. How can I format this so the main.xls copy is made to D:\Main Files ??? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Untested:
xcopy "c:\Folder\main.xls" "d:\Main Files\" Why use XCopy when you're copying a single file. And if you're doing this in a macro, you may want to look at VBAs FileCopy command. Troy 2006 wrote: I know this is not the ideal place to post, but I need to know what is the exact proper format to copy a file from one drive to another drive when the folder name contains a space in it. Example: I created a file called "Autocopy.bat" The command line goes as follows: xcopy c:\Folder\main.xls d:\Main Files\ The problem I'm having is the space between "Main Files" is not recognized by DOS. How can I format this so the main.xls copy is made to D:\Main Files ??? -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank You!!!
You guys are so awesome! "Dave Peterson" wrote: Untested: xcopy "c:\Folder\main.xls" "d:\Main Files\" Why use XCopy when you're copying a single file. And if you're doing this in a macro, you may want to look at VBAs FileCopy command. Troy 2006 wrote: I know this is not the ideal place to post, but I need to know what is the exact proper format to copy a file from one drive to another drive when the folder name contains a space in it. Example: I created a file called "Autocopy.bat" The command line goes as follows: xcopy c:\Folder\main.xls d:\Main Files\ The problem I'm having is the space between "Main Files" is not recognized by DOS. How can I format this so the main.xls copy is made to D:\Main Files ??? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using the IF Command | Excel Worksheet Functions | |||
Need help with IF command | Excel Worksheet Functions | |||
Pivot Table Error Message - "Command Text not set for command obje | Excel Discussion (Misc queries) | |||
What command to use? | Excel Worksheet Functions | |||
Excel has a "Find Next" command but no "Find Previous" command. | Excel Discussion (Misc queries) |