DosTips.com

A Forum all about DOS Batch
It is currently 27 Aug 2016 07:20

All times are UTC-06:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 13 Feb 2012 17:43 
Offline

Joined: 13 Feb 2012 17:33
Posts: 7
hello, im trying to make a file to automaticly install minecraft worlds, here is the line of code i need help with...

xcopy /e J:\30975\Stuff\Apps\Minecraft\Worlldextractorinstaller\worlds\saves C:\Users\%userprofile%\AppData\Roaming\.minecraft

i always get asked if it's a directory or file, then an incorrect path but im pretty sure it's correct

just to let u know, saves folder consists of subfolders and files...

thanks for help...


Top
   
PostPosted: 13 Feb 2012 19:33 
Offline
Expert

Joined: 13 Jan 2012 21:24
Posts: 469
storm97 wrote:
i always get asked if it's a directory or file, then an incorrect path but im pretty sure it's correct

That's easy to doublecheck, just try

dir J:\30975\Stuff\Apps\Minecraft\Worlldextractorinstaller\worlds\saves
dir C:\Users\%userprofile%\AppData\Roaming\.minecraft

at the cmd prompt, and if those (most likely) report errors, then get the paths right, first. In particular, check '%userprofile%' vs. '%username%', and maybe the 'Worlldextractorinstaller' spelling.

Liviu


Top
   
PostPosted: 13 Feb 2012 22:04 
Offline
Expert

Joined: 10 Feb 2012 02:20
Posts: 5905
storm97 wrote:
hello, im trying to make a file to automaticly install minecraft worlds, here is the line of code i need help with...

xcopy /e J:\30975\Stuff\Apps\Minecraft\Worlldextractorinstaller\worlds\saves C:\Users\%userprofile%\AppData\Roaming\.minecraft

i always get asked if it's a directory or file, then an incorrect path but im pretty sure it's correct


Try this - the trailing slash should stop it asking if it is a file or folder. The double quotes will help if userprofile contains spaces etc.

xcopy /e "J:\30975\Stuff\Apps\Minecraft\Worlldextractorinstaller\worlds\saves" "C:\Users\%userprofile%\AppData\Roaming\.minecraft\"


Top
   
PostPosted: 14 Feb 2012 19:49 
Offline

Joined: 13 Feb 2012 17:33
Posts: 7
iT'S ALIVE!!!! (a.k.a. it works, thanks... :D


Top
   
PostPosted: 20 Feb 2012 09:46 
Offline

Joined: 20 Feb 2012 08:14
Posts: 7
Location: Behind you
storm97 wrote:
iT'S ALIVE!!!! (a.k.a. it works, thanks... :D




Could you possibly put the file up for download?

I'm sure the frustrated minecraft players out there would love a tool like this!


Top
   
PostPosted: 20 Feb 2012 15:22 
Offline

Joined: 13 Feb 2012 17:33
Posts: 7
maybe, it needs a little more work first, check back later


Top
   
PostPosted: 27 Feb 2012 17:07 
Offline

Joined: 13 Feb 2012 17:33
Posts: 7
it's going to take longer than i thought, stupid teacher confiscated jump drive :(


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited