Previous in Forum: Freeware for Putting Digital Photos to Music?   Next in Forum: computer work
Close
Close
Close
12 comments
Rate Comments: Nested
Commentator
Engineering Fields - Manufacturing Engineering - Look for solutions before the problem occurs

Join Date: Jun 2008
Location: Missouri
Posts: 68
Good Answers: 5

Using HTML to Copy a File from a Network Drive

04/30/2009 2:26 PM

I have a need to copy a file from a network drive to the local drive using HTML and then delete it after it is used. I would like 2 different HTML strings, one to copy and one to delete the file. If possible I would like to launch the program that the file is use with in the copy string. I am not very familiar with HTML but have used it a little bit. Can someone help me with this Please.

Thanks

The problem solver

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".
Guru
Engineering Fields - Systems Engineering - New Member Popular Science - Weaponology - New Member

Join Date: Jun 2006
Location: Borrego Springs
Posts: 2636
Good Answers: 62
#1

Re: Can I copy a file from a network drive with HTML?

04/30/2009 3:57 PM

Not really, and yet yes

Alternatives close to what you asked all require help from the other end i.e. FTP requires FTP be supported on a server, HTML proper requires HTML server functions.

So in that respect - no.

But, you can reach to a shared network drive through your browser and either display (open either in your browser or with a dedicated program) or drag the file over. This is actually done through (depending on system) SMB or MFS or similar, (just say file functions). And it is done with double-clicks or with a right click select similar to Explorer. All invisible to you.

So in this respect - yes.

Now if you double-click the file is brought over and thrown into your cache and opened. Cache is temporary. Usually cleaned out when you close your browser or periodically depending on how your browser is configured.

If you need something that more explicitly deletes it from cache, or want to restrict this operation (f'instance the right click also allows delete), AND you don't want to install any of the hosting functions on the drive you are reaching for, you got some programming or scripting to learn.

Best I can do,

Hope it helps.

__________________
"If you want to get somewhere else, you must run at least twice as fast as that!"
Register to Reply
Commentator
Engineering Fields - Manufacturing Engineering - Look for solutions before the problem occurs

Join Date: Jun 2008
Location: Missouri
Posts: 68
Good Answers: 5
#3
In reply to #1

Re: Can I copy a file from a network drive with HTML?

05/01/2009 8:07 AM

Thanks for the reply. If there is an FTP on the server (I am not sure if there is or not), can you give me any sample of code that might work? HTML may not be what I want. I need to move a file off of a read only drive, open the program that uses the file, and then remove the file after the printing process is complete. It needs to be done with somthing like a hyperlink. Is there anything simple to do this with. I am a hardware engineer, software was not my favorite but I am willing to learn as needed. I am realy looking for a snipit that I can modify file name and locations to fit in each window I need. If anyone has any specific questions I will try to answer them to the best of my ability.

Thanks

Doug

Register to Reply
Guru
Brazil - Member - New Member Engineering Fields - Mechanical Engineering - New Member Hobbies - RC Aircraft - New Member Hobbies - Target Shooting - New Member Hobbies - Automotive Performance - Hey there... interested in exchanging information about car performance? Hobbies - DIY Welding - New Member

Join Date: Jan 2007
Location: Porto Alegre - RS - Brazil 30deg01'39.73"S 51deg13'43.45"W
Posts: 831
Good Answers: 28
#2

Re: Using HTML to Copy a File from a Network Drive

04/30/2009 6:55 PM

I'm really not shure html is the choice, because it is the architecture WYSIWYG (what you see is what you get ). Have you thought about (or are able of) doing it with php? Lots of this stuff built in... and most of web server packages come with php servers built in (and other things like database servers) like WAMP. And - best of all - most of them are free. And, if youre thinking about a hardcore solution, then there's Java, but its really another story.

__________________
Humm... suspicious you are...
Register to Reply
Power-User

Join Date: Mar 2006
Location: Valdosta, GA
Posts: 361
Good Answers: 8
#4

Re: Using HTML to Copy a File from a Network Drive

05/01/2009 3:41 PM

It depends on the type of file you are wanting to open but if you have the program that the file is associated with installed on your computer it is possible that your browser will open the file in a browser window and display it. This is true with pdf and doc files on my desktop. nothing special to do. Just open, print and close window. If you are wanting to print a file, other than an ascii text file, you will need the associated program to print anyhow. Can you give more specific information on what type of file you are trying to work with?

__________________
Always use protection.
Register to Reply
Commentator
Engineering Fields - Manufacturing Engineering - Look for solutions before the problem occurs

Join Date: Jun 2008
Location: Missouri
Posts: 68
Good Answers: 5
#5
In reply to #4

Re: Using HTML to Copy a File from a Network Drive

05/01/2009 3:49 PM

It is a Tyco Printer file that contains serial numbers. The original file is contained on the Engineering Drive that is locked from editing from Production staff, however in order for the program to increment serial numbers, it must write back to the hard drive. Maybe this will help

Thanks

Register to Reply
2
Guru
Popular Science - Biology - life lover Hobbies - Musician - music lover Safety - Hazmat - better safe than sorry United Arab Emirates - Member - desert trek Technical Fields - Procurement - procurement

Join Date: Sep 2008
Location: Dubai, UAE
Posts: 744
Good Answers: 58
#6

Re: Using HTML to Copy a File from a Network Drive

05/02/2009 8:34 AM

I don't know your requirements and intents, but at first glance, the approach is not very forthright. why would you copy a file from a server and then delete it? and, why use HTML? to make the operation covert? nobody deletes a file from a server. they are archived!

your proposal is a security breach.

talk with your superior and server admin. they can help you with a solution that is more proper and above-board. otherwise, if this breach is discovered, you risk your job, and your admin's job as well.

__________________
Now the darkness only stays the night-time, in the morning it will fade away. -- George Harrison (All Things Must Pass)
Register to Reply Good Answer (Score 2)
Commentator
Engineering Fields - Manufacturing Engineering - Look for solutions before the problem occurs

Join Date: Jun 2008
Location: Missouri
Posts: 68
Good Answers: 5
#8
In reply to #6

Re: Using HTML to Copy a File from a Network Drive

05/04/2009 10:59 AM

See Post 5. The file is used by production Staff and after use it then must be deleted from the local drive, not the server.

Register to Reply
Guru
Popular Science - Biology - life lover Hobbies - Musician - music lover Safety - Hazmat - better safe than sorry United Arab Emirates - Member - desert trek Technical Fields - Procurement - procurement

Join Date: Sep 2008
Location: Dubai, UAE
Posts: 744
Good Answers: 58
#10
In reply to #8

Re: Using HTML to Copy a File from a Network Drive

05/05/2009 5:59 AM

OK, didn't notice Post 5 when I replied, but just the same, IMHO, it is still best to get the solution from your NetAd or SysAd, as they would know the most appropriate method for your need. it's their job to do that, in the first place. offhand, a VB macro can do the job you described.

nevertheless, with the circumstances you described, if I were in your place, I would use this opportunity to collaborate towards a solution with system owners (Eng'g with Product'n and InfoSys). this would make for good working relationship, as well. if you did that at the beginning, you'd already have solved the problem before you got to reading this post.

__________________
Now the darkness only stays the night-time, in the morning it will fade away. -- George Harrison (All Things Must Pass)
Register to Reply
Commentator
Engineering Fields - Manufacturing Engineering - Look for solutions before the problem occurs

Join Date: Jun 2008
Location: Missouri
Posts: 68
Good Answers: 5
#11
In reply to #10

Re: Using HTML to Copy a File from a Network Drive

05/05/2009 9:37 AM

Your solution would be great, If we had any IT. Unfortunately, that position was eliminated and now the task has been put in my court for resolution. Hence, the question to begin with. The files that need to be copied and then deleted are not "high security". They just need to be archived so that they do not get accidentally changed. Our QA system will ensure the final product. I would like to be able to print directly from the server, but the sequential serial numbers are the problem. Each sequential number is saved to the hard drive before printing and then the next one will replace it. I don't like the software, but it is what we have and I must make it work. The security issue has been addressed and the owners and the Document Control/ ISO department have given their blessing.

Register to Reply
Associate

Join Date: Mar 2009
Location: Ras Al Kaimah
Posts: 44
Good Answers: 1
#7

Re: Using HTML to Copy a File from a Network Drive

05/03/2009 5:45 PM

you want hack the server? you are not engineer. not good.

Register to Reply
Commentator
Engineering Fields - Manufacturing Engineering - Look for solutions before the problem occurs

Join Date: Jun 2008
Location: Missouri
Posts: 68
Good Answers: 5
#9
In reply to #7

Re: Using HTML to Copy a File from a Network Drive

05/04/2009 11:00 AM

See Post 5. The file is used by production Staff and after use it then must be deleted from the local drive, not the server.

Register to Reply
Anonymous Poster
#12

Re: Using HTML to Copy a File from a Network Drive

05/08/2009 4:00 PM

If I understand your request correctly, and if you want to run you script (or open your html page) in windows, all you need is using VB Script that you can run it within HTML (but with security warning from the IE), or you can rename your HTML file with .HTA extension, check this url as a startup http://www.computerperformance.co.uk/ezine/ezine36.htm good luck

Register to Reply
Register to Reply 12 comments

Good Answers:

These comments received enough positive votes to make them "good answers".
Copy to Clipboard

Users who posted comments:

agila (1); Anonymous Poster (1); bhrescobar (1); edignan (1); Keywalker (1); langyaw (2); TheProblemSolver (5)

Previous in Forum: Freeware for Putting Digital Photos to Music?   Next in Forum: computer work

Advertisement