|
Hi im doing an assignment Im only new to programming but at the start of my programming course witch will eventually teach me java, C# and objective C, im doing this assignment where you have to copy a file from a source folder that you put in the text box and put it in another folder witch you put in the other text box now I know how to do it when I create the path but I need to read the info that is put in the text box so I can do it with any folder name typed in.
you type a C:\\foldername\\andfilename.txt in one text box
then you type in destination C:\\foldername in another text box
then you press copy
that's the process, I can do that but only with a created path
help please................
|
|
|
|
|
You cannot work on system files/folders using JavaScript. It's a security issue and is not allowed. JavaScript is a client side thing.
|
|
|
|
|
I know the title says JS but the actual message says Java so likely it is a Java question. But your answer is correct about JS. It's easy for people unfamiliar with it to get those confused.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
ryanb31 wrote: but the actual message says Java
Yeah, did noticed that, but looked to me OP is talking of all languages he is trying to work on (m only new to programming but at the start of my programming course witch will eventually teach me java, C# and objective C, ).
But your point taken!
If Java, following will help OP: How to move file to another directory in Java[^]
|
|
|
|
|
He might be referring to Windows Script Host. Using JScript or VBScript, they have full access to filesytem just like any asp web server.
Q. Hey man! have you sorted out the finite soup machine?
A. Why yes, it's celery or tomato.
|
|
|
|