Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Gone'Postal
Aztec Industry
|
Posted - 2009.01.13 16:57:00 -
[1]
Edited by: Gone''Postal on 13/01/2009 17:32:19 Edited by: Gone''Postal on 13/01/2009 17:07:02 Been looking at this for a while, and I can't for the love of god find see why it fails.
MD H:\Outlook MD H:\Templates MD H:\Favorites MD H:\Desktop MD H:\My Documents
copy %UserProfile%\Application Data\Microsoft\Outlook\*.* H:\Outlook\ copy %userprofile%\Desktop\*.* H:\Desktop copy %userprofile%\Templates\*.* H:\Templates copy %userprofile%\Favorites\*.* H:\Favorites copy %UserProfile%\My Documents\*.* H:\My Documents
Where is my fail ?
Fails on the copy process "No such file or directory" |
flashfreaking
LFC Executive Outcomes
|
Posted - 2009.01.13 17:00:00 -
[2]
shouldnt it be mkdir? |
Gone'Postal
Aztec Industry
|
Posted - 2009.01.13 17:02:00 -
[3]
Originally by: flashfreaking shouldnt it be mkdir?
That bit works, its the copy process that fails, the directorys are made fine. but yes iirc you can use that command to make them as well. |
Bish Ounen
Gallente Best Path Inc. Ethereal Dawn
|
Posted - 2009.01.13 17:03:00 -
[4]
Originally by: flashfreaking shouldnt it be mkdir?
Yes, it should be.
|
Gone'Postal
Aztec Industry
|
Posted - 2009.01.13 17:06:00 -
[5]
Originally by: Bish Ounen
Originally by: flashfreaking shouldnt it be mkdir?
Yes, it should be.
Can be either.
Quote: md or mkdir Makes a new directory. The parent of the directory specified will be created if it does not already exist. md directory Equivalent to the Unix command mkdir.
Source
|
Bish Ounen
Gallente Best Path Inc. Ethereal Dawn
|
Posted - 2009.01.13 17:07:00 -
[6]
Edited by: Bish Ounen on 13/01/2009 17:08:16
Originally by: Gone'Postal
Originally by: flashfreaking shouldnt it be mkdir?
That bit works, its the copy process that fails, the directorys are made fine. but yes iirc you can use that command to make them as well.
Your last line has a typo at the beginning. Remove that asterisk and replace with a %
EDIT: Strike that, looks like you just fixed it, :) |
Gone'Postal
Aztec Industry
|
Posted - 2009.01.13 17:09:00 -
[7]
Originally by: Bish Ounen Edited by: Bish Ounen on 13/01/2009 17:08:16
Originally by: Gone'Postal
Originally by: flashfreaking shouldnt it be mkdir?
That bit works, its the copy process that fails, the directorys are made fine. but yes iirc you can use that command to make them as well.
Your last line has a typo at the beginning. Remove that asterisk and replace with a %
EDIT: Strike that, looks like you just fixed it, :)
Yeah noticed that, I've tried it with mkdir just incase, the directorys are made just fine, but still fails to find the files to copy over... |
Bish Ounen
Gallente Best Path Inc. Ethereal Dawn
|
Posted - 2009.01.13 17:12:00 -
[8]
Originally by: Gone'Postal Yeah noticed that, I've tried it with mkdir just incase, the directorys are made just fine, but still fails to find the files to copy over...
Is the "h" drive a network drive or a local drive?
Judging by the error you posted it sounds like it's finding the SOURCE files OK, but it can't find the DESTINATION directory. Try a trailing "\" on each directory and see if that does it. |
Kyanzes
Amarr Utopian Research I.E.L. Hedonistic Imperative
|
Posted - 2009.01.13 17:14:00 -
[9]
Edited by: Kyanzes on 13/01/2009 17:17:54 Quotation marks should probably be used for directory names with spaces in them. Or use the short name.
Yeah, just tested it for you. Without quotation marks it doesn't work.
Copy c:\gizmo1\*.* "d:\gizmo 2" should work while Copy c:\gizmo1\*.* d:\gizmo 2 will fail |
Gone'Postal
Aztec Industry
|
Posted - 2009.01.13 17:15:00 -
[10]
Network drive in the end, But fails on both Network and local.
Tried the trailing \ no effect. :Sad Panda:
"The system cannot find the file specified" |
|
Gone'Postal
Aztec Industry
|
Posted - 2009.01.13 17:17:00 -
[11]
Originally by: Kyanzes Quotation marks should probably be used for directory names with spaces in them. Or use the short name.
Your right on that one, Didn't notice the 2dir's it made, My and Documents, now it's made just the one with the right name, but still fail the copy process. |
Fyrewyre
|
Posted - 2009.01.13 17:21:00 -
[12]
Edited by: Fyrewyre on 13/01/2009 17:27:12 I haven't used DOS in a while, but I swear it can't handle spaces still.
Dunno if they redid it for xp, I just tried creating My Documents folder in a DOSbox and got the same separated folders, Try:
DIR C:\MYDOCU~1 /s/p
XCOPY C:\MYDOCU~1\*.* C:\SAVEDOC\*.* /s
Replacing stuff where needed. |
Kyanzes
Amarr Utopian Research I.E.L. Hedonistic Imperative
|
Posted - 2009.01.13 17:26:00 -
[13]
Edited by: Kyanzes on 13/01/2009 17:28:20 Found a solution for you.
In the batch file issue the following (tested, works)
set a=%UserProfile%+"\My Documents\*.*" copy %a% "d:\gizmo2"
The "a" is simply a variable.
This one fails: set a="%UserProfile%\My Documents\*.*"
though the system variable still gets injected.
|
Gone'Postal
Aztec Industry
|
Posted - 2009.01.13 17:32:00 -
[14]
Found a way of doing it with
set drive=H:\Backup set backupcmd=xcopy /s /c /d /e /h /i /r /y
echo ### Backing up My Documents... %backupcmd% "%USERPROFILE%\My Documents" "%drive%\My Documents"
echo ### Backing up Favorites... %backupcmd% "%USERPROFILE%\Favorites" "%drive%\Favorites"
echo ### Backing up email and address book (Outlook Express)... %backupcmd% "%USERPROFILE%\Application Data\Microsoft\Outlook" "%drive%\Outlook"
echo ### Backing up desktop icons... %backupcmd% "%USERPROFILE%\Desktop" "%drive%\Desktop"
gets the job done, thanks for the help guys.. been a while since I used dos. lol |
EnslaverOfMinmatar
|
Posted - 2009.01.13 17:35:00 -
[15]
just use Dos Navigator (DN) |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |