Jump to content

learning java basically trying to move, delete, rename files using java

so basically i want to move a file from a usb to a drive then delete a file on the computer then rename the original file.

 

i googled around but the other people just show parts of the code and then i dont know ho to implement it into my own.

i7-4930k   3xEvga gtx 780OC DC2 3gb    32gb corsair vengeance 2133mhz    asus rampage 4 extreme black  ~2 tb of ssd space

 my speedtest 1932mbit down / 497mbit up  custom water cooled

 

Link to post
Share on other sites

My knowledge of Java is limited but it seems that you may need to look at different solutions. It can be done using Java obviously, but I think it will be unnecessarily complicated. Moving files that way feels like a job for a batch script.

Link to post
Share on other sites

You want to write a program in Java to do this or is this a task you wish to automate?

kinda what it is is i have a file that i need to replace on many computers(75-100) and i dont wanna do it manually i need to take a file move it to a location then delete the file it is replacing and rename the new one too the original name or if possible just replace it from the usb straight to the location

i7-4930k   3xEvga gtx 780OC DC2 3gb    32gb corsair vengeance 2133mhz    asus rampage 4 extreme black  ~2 tb of ssd space

 my speedtest 1932mbit down / 497mbit up  custom water cooled

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×