Quantcast

Jump to content

» «
Photo

Batch file help, who knows em

2 replies to this topic
unopieceo
  • unopieceo

    Turdler Durpden

  • $outh $ide Hoodz
  • Joined: 21 Jun 2005
  • None
  • Best Vehicle 2012 [HD GTA Cars]

#1

Posted 04 October 2013 - 12:59 PM

Basically Im trying to copy a file from one folder and send it to a different folder with a new name, but I cant figure it out and its driving me crazy.

 

So lets say my batch file is in the root of my main folder, and im trying to copy f*ckface.txt from a folder named ASS to sh*thead.txt in a folder named BUTT, I would use this code

copy "ASS/f*ckface.txt" "BUTT/sh*thead.txt"

but it doesnt work, whhhhyyyyy????


trip
  • trip

    ~

  • Andolini Mafia Family
  • Joined: 10 Oct 2007
  • United-States

#2

Posted 04 October 2013 - 01:37 PM

Why a bat file?

Does the destination directory exist? If not you will need to create it or include a mkdir in your bat file.

copy c:/ass/f*ckface.txt c:/butt/sh*thead.txt
Using absolute paths may make things easier.

unopieceo
  • unopieceo

    Turdler Durpden

  • $outh $ide Hoodz
  • Joined: 21 Jun 2005
  • None
  • Best Vehicle 2012 [HD GTA Cars]

#3

Posted 04 October 2013 - 01:44 PM Edited by OnePiece, 04 October 2013 - 01:50 PM.

I dont know why a bat it just seemed the easiest thing to do. Is there anyway to do it without using absolute paths though? Like if I share the thing with other people theyll put it in a random folder and it wont work?

 

EDIT: and yeah the destination folder exsists

 

EDIT2: Never mind I put the slashes the wrong way. I am a f*ckwit.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users