CN104750372B - A kind of file sharing method and device - Google Patents

A kind of file sharing method and device Download PDF

Info

Publication number
CN104750372B
CN104750372B CN201310726433.0A CN201310726433A CN104750372B CN 104750372 B CN104750372 B CN 104750372B CN 201310726433 A CN201310726433 A CN 201310726433A CN 104750372 B CN104750372 B CN 104750372B
Authority
CN
China
Prior art keywords
file
shared
page
electronic device
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310726433.0A
Other languages
Chinese (zh)
Other versions
CN104750372A (en
Inventor
周振涛
简旭颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310726433.0A priority Critical patent/CN104750372B/en
Publication of CN104750372A publication Critical patent/CN104750372A/en
Application granted granted Critical
Publication of CN104750372B publication Critical patent/CN104750372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of file sharing method and device, method comprises determining that the parameter information of target electronic device information, the first shared setting parameter and shared file;The first shared information packet is generated according to the parameter information of the described first shared setting parameter and the shared file;The first shared information packet is sent to the target electronic device of the target electronic device information instruction, so that the target electronic device shows the first page of the shared file according to the first shared information packet generation, and the first page is shown on a display screen.The embodiment of the present invention can shorten the realization time of file-sharing, improve file-sharing efficiency.

Description

A kind of file sharing method and device
Technical field
The present invention relates to the communications field more particularly to a kind of file sharing methods and device.
Background technique
With the development of electronic equipment, the file-sharing transmission between electronic equipment is more and more frequent.The good text of interaction Part sharing mode can help people to be efficiently completed transmission of the file between each electronic equipment.
Realize that the mode of file-sharing is more flexible at present, a kind of common sharing mode is small in office scene and family File-sharing is carried out by local area network in area.The process of file-sharing in local area network specifically includes that user in a local network Specifying on one electronic equipment needs file to be sharing, the object that specified file is shared, and completes shared setting;At another On electronic equipment, user opens network neighbor, finds the electronic equipment or Shared Folders where shared file, opens electricity Sub- equipment or Shared Folders find shared file, the file operations such as are checked, replicated, edited to shared file.
For example, referring to Fig. 1, it is assumed that the file A of computer X is shared to user's second by local area network by user's first, then: User's first file A shared needed for needing to find in computer X, is arranged to shared model for required shared file A, selects File A is shared to the computer Y of user's second;User's first accuses association attributes such as IP address, computer name of computer X etc. Know user's second;User's second opens network neighbor or inputs Internet protocol (IP, the Internet of computer X Protocol) computer X is found in address, then finds the shared file A of user's first, is checked, replicated, edited to file A Equal file operations, realize the file-sharing between user's first and user's second.
It will be seen from figure 1 that operating procedure is more when carrying out file-sharing, shared procedure is complicated, realizes file-sharing Time is long, inefficient.
Summary of the invention
A kind of file sharing method and device are provided in the embodiment of the present invention, when can shorten the realization of file-sharing Between, improve file-sharing efficiency.
In a first aspect, providing a kind of file sharing method, comprising:
Determine the parameter information of target electronic device information, the first shared setting parameter and shared file;
The first shared information packet is generated according to the parameter information of the described first shared setting parameter and the shared file;
The first shared information packet is sent to the target electronic device of the target electronic device information instruction, so as to The target electronic device generates the first page for showing the shared file according to the first shared information packet, and will be described First page is shown on a display screen.
With reference to first aspect, in a first possible implementation of that first aspect, the first shared information packet is sent out After giving the target electronic device, this method further include:
Receive the file operation requests that target electronic device is sent;The file operation requests by target electronic device according to The parameter information of at least one shared file and file operation instruction generate;
The file operation is carried out at least one shared file described in the shared file and indicates corresponding file Processing.
With reference to first aspect and/or first aspect the first possible implementation, possible at second of first aspect In implementation, after the first shared information packet is sent to the target electronic device, this method further include:
Within the default first time being sent to the first shared information packet after the target electronic device, if not The file operation requests that the target electronic device is sent are received, the first shared information packet is sent to the mesh again Mark electronic equipment.
With reference to first aspect, in first aspect in the third possible implementation, according to the described first shared setting ginseng The parameter information of the several and described shared file generates the first shared information packet and specifically includes:
The is generated according to the parameter information of the shared file, the first shared setting parameter and the shared file One shared packet
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation of first aspect, by institute It states the first shared information packet to be sent to after the target electronic device, this method further include:
Within default second time being sent to the first shared information packet after the target electronic device, if not The operation acknowledgement information that the target electronic device is sent is received, the first shared information packet is sent to the mesh again Mark electronic equipment;The operation acknowledgement information is sent after carrying out file operation to the shared file by target electronic device.
With reference to first aspect and/or the first possible implementation of first aspect and/or second of first aspect can The 4th kind of possible realization of implementation and/or the third possible implementation of first aspect and/or first aspect of energy Mode includes empty folder in the shared file in the 5th kind of possible implementation of first aspect;Described first is total to After packets are enjoyed to the target electronic device, this method further include:
The second shared information packet that target electronic device is sent is received, includes: to be added in the second shared information packet The parameter information of at least one file in the empty folder that the first page is shown and the second shared setting parameter;
It is generated according to the parameter information of at least one file and the second shared setting parameter described in showing extremely The second page of a few file;
The second page is shown on a display screen.
5th kind of possible implementation with reference to first aspect, in the 6th kind of possible implementation of first aspect, institute Stating in the second shared information packet further includes at least one described file;Receive the second shared information packet that target electronic device is sent Later, this method comprises:
At least one described file is stored in the empty folder.
The 6th kind of possible implementation of 5th kind of possible implementation and/or first aspect with reference to first aspect, In the 7th kind of possible implementation of first aspect, the second page is realized by pop-up box or dialog box.
The 6th kind of possible implementation of 5th kind of possible implementation and/or first aspect with reference to first aspect, knot The 7th kind of possible implementation of first aspect is closed, in the 8th kind of possible implementation of first aspect, by the second page Face is shown
Directly the second page is shown on a display screen;Alternatively,
The prompt icon of the second page is set in taskbar;User is received to the specified behaviour of the prompt icon When making, the second page is shown on a display screen.
Second aspect provides a kind of file sharing method, comprising:
The first shared information packet that reception source electronic equipment is sent;It include: first shared in the first shared information packet The parameter information of parameter and shared file is set;
It is generated according to the parameter information of the described first shared setting parameter and the shared file and shows the shared text The first page of part;
By the first page show on a display screen, so as to user to the shared file shown in first page into Row file operation.
In conjunction with second aspect, in second aspect in the first possible implementation, the first page is shown aobvious After in display screen, this method further include:
User is obtained to indicate the file operation of at least one shared file in first page;
File operation is generated according to the parameter information of at least one shared file and file operation instruction to ask It asks;
The file operation requests are sent to source electronic equipment, so as to source electronic equipment to described in shared file at least One shared file carries out file operation and indicates corresponding file process.
In conjunction with second aspect, in second of second aspect possible implementation, in the first shared information packet also It include: the shared file;After the first page is shown on a display screen, this method further include:
Store the shared file in the first shared information packet;
User is obtained to indicate the file operation of at least one shared file in first page;
At least one shared file described in shared file to storage carries out the indicated text of the file operation instruction Part operation.
In conjunction with second aspect and/or the first possible implementation of second aspect and/or second of second aspect can The implementation of energy includes empty folder in the shared file in second aspect in the third possible implementation;By institute It states after first page shows on a display screen, this method further include:
Obtain the parameter information at least one file being added in the empty folder that the first page is shown And the second shared setting parameter;
The second shared information packet is generated according to the parameter information of at least one file and the second shared setting parameter;
The second shared information packet is sent to source electronic equipment, so that the source electronic equipment is total according to described second It enjoys packet and generates the second page for showing at least one file, and the second page is shown on a display screen.
In conjunction with second aspect and/or the first possible implementation of second aspect and/or second of second aspect can Can implementation and/or second aspect the third possible implementation, in the 4th kind of possible implementation of second aspect In, the first page is realized by pop-up box or dialog box.
In conjunction with second aspect and/or the first possible implementation of second aspect and/or second of second aspect can The 4th kind of possible realization of implementation and/or the third possible implementation of second aspect and/or second aspect of energy The first page is shown in the 5th kind of possible implementation of second aspect and includes: on a display screen by mode
Directly the first page is shown on a display screen;Alternatively,
The prompt icon of the first page is set in taskbar;User is received to the specified behaviour of the prompt icon When making, the first page is shown on a display screen.
The third aspect provides a kind of file sharing device, comprising:
First determination unit, for determining target electronic device information, the first shared setting parameter and shared file Parameter information;
First packet generation unit, the described first shared setting parameter for being determined according to the first determination unit and described The parameter information of shared file generates the first shared information packet;
First transmission unit, the first shared information packet for generating the first packet generation unit are sent to institute The target electronic device of target electronic device information instruction is stated, so that the target electronic device is according to first shared information Packet generates the first page for showing the shared file, and the first page is shown on a display screen.
In conjunction with the third aspect, in the third aspect in the first possible implementation, the device further include:
First receiving unit, for receiving the file operation requests of target electronic device transmission;The file operation requests It include: the information of at least one shared file and file operation instruction in shared file;
Processing unit refers to for carrying out the file operation at least one shared file described in the shared file Show corresponding file process.
It is possible at second of the third aspect in conjunction with the third aspect and/or the third aspect the first possible implementation In implementation, the first transmission unit is also used to:
Within the default first time being sent to the first shared information packet after the target electronic device, if institute It states the first receiving unit and does not receive the file operation requests that the target electronic device is sent, be total to again by described first Packets are enjoyed to the target electronic device.
In conjunction with the third aspect, in the third aspect in the third possible implementation, the first packet generation unit is specific For: first is generated according to the parameter information of the shared file, the first shared setting parameter and the shared file Shared information packet.
The third possible implementation in conjunction with the third aspect, in the 4th kind of possible implementation of the third aspect, first Transmission unit is also used to:
Within default second time being sent to the first shared information packet after the target electronic device, if not The operation acknowledgement information that the target electronic device is sent is received, the first shared information packet is sent to the mesh again Mark electronic equipment;The operation acknowledgement information is sent after target electronic device carries out file operation to the shared file.
In conjunction with the third aspect and/or the first possible implementation of the third aspect and/or second of the third aspect can The 4th kind of possible realization of implementation and/or the third possible implementation of the third aspect and/or the third aspect of energy Mode includes empty folder in the shared file in the 5th kind of possible implementation of the third aspect, which also wraps It includes:
Second receiving unit, for receiving the second shared information packet of target electronic device transmission, the described second shared letter It include: the parameter information and at least one file being added in the empty folder that the first page is shown in breath packet Two shared setting parameters;
First page generation unit, for according to the second receiving unit receive described at least one file parameter letter Breath and the second shared setting parameter generate the second page for showing at least one file;
First display unit, the second page for generating first page generation unit are shown on a display screen.
In conjunction with the 5th kind of possible implementation of the third aspect, in the 6th kind of possible implementation of the third aspect, institute Stating in the received second shared information packet of the second receiving unit further includes at least one described file, which includes:
First storage unit is stored in the ineffective law, rule, etc. at least one file described in receiving the second receiving unit In part folder.
In conjunction with the 6th kind of possible implementation of the 5th kind of possible implementation of the third aspect and/or the third aspect, In the 7th kind of possible implementation of the third aspect, the second page is realized by pop-up box or dialog box.
In conjunction with the 6th kind of possible implementation of the 5th kind of possible implementation of the third aspect and/or the third aspect, knot Close the 7th kind of possible implementation of the third aspect, in the 8th kind of possible implementation of the third aspect, the first display unit It is specifically used for:
Directly the second page is shown on a display screen;Alternatively,
The prompt icon of the second page is set in taskbar;User is received to the specified behaviour of the prompt icon When making, the second page is shown on a display screen.
Fourth aspect provides a kind of file sharing device, comprising:
Third receiving unit, for receiving the first shared information packet of source electronic equipment transmission;First shared information It include: the parameter information of the first shared setting parameter and shared file in packet;
Second page generation unit, for according to the shared setting parameter of third receiving unit received described first and institute The parameter information for stating shared file generates the first page for showing the shared file;
Second display unit, the first page for generating second page generation unit show on a display screen, So that user carries out file operation to the shared file shown in first page.
In conjunction with fourth aspect, in fourth aspect in the first possible implementation, the device further include:
First acquisition unit, for obtaining the shared text of at least one in the first page that user shows the second display unit The file operation of part indicates;
Request generation unit, for according to first acquisition unit obtain described at least one shared file parameter information And the file operation instruction generates file operation requests;
Second transmission unit, the file operation requests for generating request unit are sent to source electronic equipment, with Just source electronic equipment carries out file operation at least one shared file described in shared file and indicates corresponding file process.
In conjunction with fourth aspect, in second of fourth aspect possible implementation, in the first shared information packet also It include: the shared file;The device further include:
Second storage unit, for storing the shared file in the first shared information packet;
Acquiring unit is operated, the file operation of at least one shared file in first page is indicated for obtaining user;
Operation processing unit carries out the file behaviour at least one shared file described in the shared file to storage Indicate indicated file operation.
In conjunction with fourth aspect and/or the first possible implementation of fourth aspect and/or second of fourth aspect can The implementation of energy includes empty folder, the dress in the shared file in fourth aspect in the third possible implementation It sets further include:
Second acquisition unit is added to what the first page that second display unit is shown was shown for obtaining The parameter information of at least one file in the empty folder and the second shared setting parameter;
Second packet generation unit, for according to second acquisition unit obtain described at least one file parameter information with And second shared setting parameter generate the second shared information packet;
Third transmission unit, for the second shared information packet to be sent to source electronic equipment, so as to the source electronics Equipment generates the second page for showing at least one file according to the second shared information packet, and by the second page Display is on a display screen.
In conjunction with fourth aspect and/or the first possible implementation of fourth aspect and/or second of fourth aspect can Can implementation and/or fourth aspect the third possible implementation, in the 4th kind of possible implementation of fourth aspect In, the first page is realized by pop-up box or dialog box.
In conjunction with fourth aspect and/or the first possible implementation of fourth aspect and/or second of fourth aspect can The 4th kind of possible realization of implementation and/or the third possible implementation of fourth aspect and/or fourth aspect of energy Mode, in the 5th kind of possible implementation of fourth aspect, the second display unit is specifically used for:
Directly the first page is shown on a display screen;Alternatively,
The prompt icon of the first page is set in taskbar;User is received to the specified behaviour of the prompt icon When making, the first page is shown on a display screen.
In the present embodiment, the parameter letter of target electronic device information, the first shared setting parameter and shared file is determined Breath;The first shared information packet is generated according to the parameter information of the described first shared setting parameter and the shared file;By institute The target electronic device that the first shared information packet is sent to the target electronic device information instruction is stated, so as to the target electronic Equipment generates the first page for showing the shared file according to the first shared information packet, and the first page is shown On a display screen.To which after user has carried out file-sharing on the electronic equipment of source, source electronic equipment is sent out to target electronic device First page directly is shown to user after sending the first shared information packet, target electronic device to receive the first shared information packet, The time delay for getting shared file using the user of target electronic device is relatively fewer, and sharing efficiency is high;Moreover, user without Need any selection operation that can check that shared file, the time delay of file-sharing are further by first page on a display screen It reduces, file-sharing efficiency further increases.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is prior art document sharing method flow chart;
Fig. 2 is file sharing method first embodiment schematic diagram of the present invention;
Fig. 3 is file sharing method second embodiment schematic diagram of the present invention;
Fig. 4 is file sharing method 3rd embodiment schematic diagram of the present invention;
Fig. 4 A is shared file exhibition method of the present invention citing one;
Fig. 4 B is shared file exhibition method of the present invention citing two;
Fig. 4 C is page display method of the present invention citing one;
Fig. 4 D is page display method of the present invention citing two;
Fig. 5 is file sharing method fourth embodiment schematic diagram of the present invention;
Fig. 6 is file sharing device first embodiment schematic diagram of the present invention;
Fig. 7 is file sharing device second embodiment schematic diagram of the present invention;
Fig. 8 is electronic devices structure schematic diagram in source of the present invention;
Fig. 9 is target electronic device structural schematic diagram of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Whole description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under that premise of not paying creative labor Embodiment shall fall within the protection scope of the present invention.
Wherein, the electronics that the method for the embodiment of the present invention and device can be adapted for any two and can be in communication with each other is set Between standby, specifically, two electronic equipments can be carried out by any communications such as local area network, internet, bluetooth mode Communication, does not limit here.Here, the electronic equipment for carrying out file-sharing first is known as source electronic equipment, it will be as source electricity The electronic equipment of the file-sharing target of sub- equipment is known as target electronic device.
It referring to fig. 2, is file sharing method first embodiment schematic diagram of the present invention, this method comprises:
Step 201: source electronic equipment determines target electronic device information, the first shared setting parameter and shared file Parameter information;
Step 202: source electronic equipment is according to the described first shared parameter information that parameter and the shared file is arranged Generate the first shared information packet;
Step 203: the first shared information packet is sent to the target electronic device information and indicated by source electronic equipment Target electronic device, show the shared file so that the target electronic device is generated according to the first shared information packet First page, and the first page is shown on a display screen.
In the present embodiment, after user has carried out file-sharing on the electronic equipment of source, source electronic equipment is set to target electronic Preparation directly shows first page to user after sending the first shared information packet, target electronic device to receive the first shared information packet Face, the time delay for getting shared file using the user of target electronic device is relatively fewer, and sharing efficiency is high;Moreover, with Family can check shared file by first page on a display screen without any selection operation, the time delay of file-sharing into One step is reduced, and file-sharing efficiency further increases.
It is file sharing method second embodiment schematic diagram of the present invention referring to Fig. 3, this method comprises:
Step 301: target electronic device receives the first shared information packet that source electronic equipment is sent;Described first shared letter It include: the parameter information of the first shared setting parameter and shared file in breath packet;
Step 302: target electronic device is believed according to the parameter of the described first shared setting parameter and the shared file Breath generates the first page for showing the shared file;
Step 303: target electronic device shows the first page on a display screen, so that user is in first page The shared file shown carries out file operation.
In the present embodiment, after target electronic device receives the first shared information packet, according to the described first shared letter Breath packet generates the first page for showing the shared file, and shows on a display screen, to use the use of target electronic device The time delay that family gets shared file is relatively fewer, and sharing efficiency is high;Moreover, user can be without any selection operation Check that shared file, the time delay of file-sharing are further reduced by first page on display screen, file-sharing efficiency into One step improves.
It referring to fig. 4, is file sharing method 3rd embodiment schematic diagram of the present invention, this method comprises:
Step 401: source electronic equipment obtain user for file sharing operation, determine shared file parameter information, Target electronic device information and the first shared setting parameter.
Wherein, user can modes carry out shared behaviour to file by the way that filesselected, right button filesselected be shared etc. Make, be not intended to limit here, if can indicate source electronic equipment need file to be sharing and the source electronic equipment of instruction start into Row file-sharing.
Wherein, the parameter information of shared file may include: that file name, file size, file format, file are shared The relevant information of time, file settling time etc. shared file itself;In practical applications, described in the embodiment of the present invention The parameter information of shared file may include all or part of parameter of the example above, such as only include file name, or packet File name and file size are included, or including above-mentioned all parameters etc., is not intended to limit here.
The target electronic device information may include: the IP address of target electronic device, the title of target electronic device Deng.In general, target electronic device information can only include the IP address or title, as long as target can be indicated uniquely Electronic equipment.
First shared setting parameter may include: the reading attributes of shared file, editable attribute etc. in shared to text The restricted information of part operation, exhibition method information etc. of the shared file in target electronic device;It can also include user to altogether File user-defined other attribute informations etc. are enjoyed, are not limited here.In practical applications, described first in the embodiment of the present invention Shared setting parameter may include all or part of parameter of the example above, be not intended to limit here.
Step 402: source electronic equipment is generated according to the parameter information of the shared file and the first shared setting parameter First shared information packet sets the target electronic that the first shared information packet is sent to the target electronic device information instruction It is standby.
In practical applications, the realization structure of the first shared information packet, such as the first shared information packet can be preset Included each field;By the way that the parameter information of the shared file and first are shared setting parameter setting corresponding The first shared information packet is generated in field.
Wherein, how the first shared information packet is sent to target electronic device by source electronic equipment, is not intended to limit here.Example Such as, it is assumed that source electronic equipment and target electronic device are provided with network server by local area network communication between the two, then institute Network server can be sent to by source electronic equipment by stating the first shared information packet, then be forwarded to target electronic by network server Equipment.
Step 403: target electronic device receives the first shared information packet, according to including the shared file Parameter information and the first shared setting parameter generate the first page for showing the shared file.
Wherein, when generating first page, the described first shared setting parameter determine shown in first page it is each The operation limitation of a shared file, way of realization of first page etc., for example,
Assuming that when including: the restricted information in sharing to file operation in the described first shared setting parameter, the limitation Information can be used as the operation limitation of each shared file shown in first page, for example, it is assumed that the first shared setting ginseng It include: this read-only restricted information of file in number, then the operating right of each shared file is only in the first page generated Reading, other operations such as user can not replicate shared file, edit;
Assuming that including: exhibition method letter of the shared file in target electronic device in the described first shared setting parameter Breath, the exhibition method information decide the way of realization of first page.For example, displaying of the shared file in target electronic device Mode information may include: the exhibition method letter of the exhibition method information or shared file of first page in first page Breath etc..For example,
Assuming that the exhibition method information of first page are as follows: shown in a manner of dialog box, then the first page generated can Think dialog box;
Assuming that the exhibition method information of first page are as follows: shown in a manner of pop-up box, then the first page generated can Think pop-up box;
Assuming that exhibition method information of the shared file in first page are as follows: shared file is in a manner of icon in first page Shown in face, then in the first page of generation by include: each shared file icon, the icon is by file type institute Corresponding picture and file name are constituted;As shown in Figure 4 A, the file type of two shared files is all word document, file Title is respectively file 1 and file 2;
Assuming that exhibition method information of the shared file in first page are as follows: shared file is in a manner of details Shown in one page, then in the first page of generation by include: displaying each shared file details, it is described in detail Thin information may include: picture corresponding to file type and various parameters information such as file name, file size, modification Date etc.;Such as shown in Fig. 4 B, the file type of first shared file in first page is word document, file name HP122441.121225. tell somebody what one's real intentions are book .C2A.doc, and the modification date is the 17:46 on the 29th of September in 2013, and file size is 451KB.
In addition, when generating first page, for each shared file shown in first page, the shared file Parameter information can provide specifying information for the displaying of the shared file;For example, as shown in Figure 4 A, the shared text of first of displaying The icon of part is the filename of picture and the shared file as corresponding to the file type (word document) of the shared file (file 1) is claimed to be constituted;Alternatively, as shown in Figure 4 B, the file type of first shared file is word document, the of displaying It include picture, file name corresponding to the file type (word document) of this document when one shared file (HP122441.121225. tell somebody what one's real intentions are book .C2A.doc), modification date (17:46 on the 29th of September in 2013), file size (451KB);Etc..
The above content is merely illustrative, in practical applications, specifically how according to the parameter information of the shared file and Described first shared setting parameter generates the first page present invention and is not intended to limit.
In one possible implementation, if being transmitted across other to target electronic device before the electronic equipment of source About the shared information packet of shared file, target electronic device has generated the shared file of a displaying source electronic equipment The page, then the shared file that will can directly show in this step is added on the page that this has been generated, as described First page, to show that source electronic equipment shares to all shared files of target electronic device on one page.
Step 404: target electronic device shows the first page on a display screen.
In practical applications, the first page directly can be shown all interfaces on a display screen by target electronic device The top;Alternatively, the prompt icon of the first page is arranged in taskbar, user is received to the prompt icon When specified operation, the first page is shown on a display screen.
The specified operation can be mouse-click, double-click etc., not limit here.
Wherein, when the first page is directly shown the top at all interfaces on a display screen by target electronic device When, the first page can by automatic spring frame for example shown in Fig. 4 C, TIPS pop-up box for example shown in Fig. 4 D or talks with Frame etc. is realized.
When the prompt icon of the first page is arranged in target electronic device in taskbar, first page can pass through TIPS pop-up box or dialog box etc. are realized.
Step 405: target electronic device receives user to the file of at least one shared file shown in first page Operation instruction.
The file operation may include: File Open, save File As, file is deleted, file duplication etc. is various to text The possible operation of part, is not intended to limit here.
Wherein, user can choose at least one shared file in shared file shown in first page, pass through the right side Key selects specific file operation to complete the file operation instruction.
Step 406: target electronic device is grasped according to the parameter information and the file of at least one shared file Make instruction and generate file operation requests, the file operation requests are sent to source electronic equipment.
The file operation requests carry out file operation at least one described shared file for request source electronic equipment Indicate corresponding file process.
Wherein, file operation requests specifically how to be generated to be not intended to limit here, how is sent the file operation requests It is not limited here to source electronic equipment.
Step 407: source electronic equipment receives the file operation requests, in the shared file of source electronic equipment local At least one described shared file carries out the file operation and indicates corresponding file process.
Such as the file operation is designated as the instruction of File Open or the instruction to save File As or file are multiple The instruction etc. of system, then file operation indicates that corresponding file process can be with are as follows: at least one described shared file is sent to mesh Mark electronic equipment;
Such as the file operation is designated as the instruction of file deletion, then file operation indicates that corresponding file process can be with Are as follows: delete at least one described shared file.
In addition, if in the shared file include empty folder, the embodiment of the present invention can with the following steps are included:
Step 408: target electronic device, which obtains, to be added in the empty folder that the first page is shown extremely The parameter information of a few file and the second shared setting parameter;According to the parameter information of at least one file and Two shared setting parameters generate the second shared information packet.
Wherein, at least one described file can be in target electronic device, user and wish to share to source electronic equipment File;The realization of the parameter information of at least one file, the second shared setting parameter, the second shared information packet can be joined Parameter information, the first shared explanation that parameter and the first shared information packet are set of shared file are stated before examination, it is no longer superfluous here It states.
Step 409: source electronic equipment receives the second shared information packet that target electronic device is sent;According to described at least one The parameter information of a file and the second shared setting parameter generate the second page for showing at least one file;It will The second page is shown on a display screen.
Wherein, the realization of this step and later file operation of the user at least one file shown in second page Realization can refer to step 403~step 407, which is not described herein again.
Wherein, the limitation of sequence is not carried out between step 405~step 407 and step 408~step 409.
In the present embodiment, the first shared information packet is sent to target electricity by source electronic equipment in step 402 After the target electronic device of sub- facility information instruction, a timer can star, if source electronic equipment is pre- in timer institute If first time time-out when be not received by the file operation requests or the second shared information packet, can will be described First shared information packet is re-transmitted to the target electronic device, to prevent between source electronic equipment and target electronic device When communication line breaks down, the first shared information packet cannot be successfully transmitted to target electronic device.
In the present embodiment, after user has carried out file-sharing on the electronic equipment of source, source electronic equipment is set to target electronic Preparation directly shows first page to user after sending the first shared information packet, target electronic device to receive the first shared information packet Face, the time delay for getting shared file using the user of target electronic device is relatively fewer, and sharing efficiency is high;Moreover, with Family can check shared file by first page on a display screen without any selection operation, the time delay of file-sharing into One step is reduced, and file-sharing efficiency further increases;
Moreover, the text in target electronic device can be directly added in user in the empty folder that source electronic equipment is shared Part shares this document to source electronic equipment, thus the step of further simplifying file-sharing, reduce shared file when Between postpone, improve file-sharing efficiency.
It is file sharing method fourth embodiment schematic diagram of the present invention referring to Fig. 5, this method comprises:
Step 501 is identical as step 401, does not repeat here;
Step 502: source electronic equipment is according to the shared setting of the shared file, the parameter information of shared file and first Parameter generates the first shared information packet, and the first shared information packet is sent to the mesh of the target electronic device information instruction Mark electronic equipment.
The difference of this step and step 402 is only that in the first shared information packet further include: shared file.
Step 503~step 505 is similar to step 403~step 405, and difference is only that: in step 503 further include: mesh It marks electronic equipment and the shared file for including in the first shared information packet is stored in local.
Step 506: target electronic device obtains user and refers to the file operation of at least one shared file in first page Show, at least one shared file described in the shared file to storage carries out the indicated file behaviour of the file operation instruction Make.
How target electronic device, which obtains the file operation, indicates to please refer to the related description in step 406, here not It repeats.
Wherein, shared file is directly sent to target electricity by the first shared information packet by source electronic equipment in the present embodiment The shared file is stored in local by sub- equipment, target electronic device, therefore, in this step target electronic device directly according to The file operation instruction carries out file operation to the shared file being locally stored.
In addition, if in the shared file include empty folder, the embodiment of the present invention can with the following steps are included:
Step 507: target electronic device, which obtains, to be added in the empty folder that the first page is shown extremely The parameter information of a few file and the second shared setting parameter;According at least one described file, at least one described text The parameter information of part and the second shared setting parameter generate the second shared information packet.
Wherein, at least one described file can be in target electronic device, user and wish to share to source electronic equipment File;The realization of the parameter information of at least one file, the second shared setting parameter, the second shared information packet can be joined Parameter information, the first shared the setting parameter, the explanation of the first shared information packet of shared file are stated before examination, and which is not described herein again.
Step 508: source electronic equipment receives the second shared information packet that target electronic device is sent, will it is described at least one File is stored into the empty folder, according to the parameter information of at least one file and the second shared setting ginseng Number generates the second page for showing at least one file, and the second page is shown on a display screen.
Wherein, the realization of this step and later file of the user at least one file shown in second page The realization of operation can refer to step 503~step 506, and which is not described herein again.
In the present embodiment, after target electronic device carries out file operation to the shared file, target electronic device Operation acknowledgement information can be sent to source electronic equipment;The operation acknowledgement information can be only total to first in target electronic device It enjoys after the shared file in packet carries out file operation for the first time and sending, it can also be every time to shared in the first shared information packet File is all sent after carrying out file operation.Then, in step 502 source electronic equipment the first shared information packet is sent to it is described After the target electronic device of target electronic device information instruction, a timer can star, if source electronic equipment is in timing It is not received by the file operation requests or the second shared information packet when the preset second time time-out of device, it can will The first shared information packet is re-transmitted to the target electronic device, with prevent source electronic equipment and target electronic device it Between communication line break down when, the first shared information packet cannot be successfully transmitted to target electronic device.
In the present embodiment, after user has carried out file-sharing on the electronic equipment of source, source electronic equipment is set to target electronic Preparation directly shows first page to user after sending the first shared information packet, target electronic device to receive the first shared information packet Face, the time delay for getting shared file using the user of target electronic device is relatively fewer, and sharing efficiency is high;Moreover, with Family can check shared file by first page on a display screen without any selection operation, the time delay of file-sharing into One step is reduced, and file-sharing efficiency further increases;
Moreover, the text in target electronic device can be directly added in user in the empty folder that source electronic equipment is shared Part shares this document to source electronic equipment, thus the step of further simplifying file-sharing, reduce shared file when Between postpone, improve file-sharing efficiency.
The above-mentioned embodiment of the present invention completes file by way of showing the page for showing shared file on a display screen It is shared, operation complexity of the user in file-sharing is reduced, operating procedure of the user in shared file is reduced, is promoted User experience;Presentation while supporting shared file under multiple and different files reduces the operation that user searches shared file;Behaviour Make simply, to reduce the learning cost of file-sharing;
In addition, the embodiment of the present invention can effectively realize the file between enterprises and enterprise be quickly shared and file pass It is defeated, while supporting uniformly checking and operating for multiple shared files, promote working efficiency when enterprise carries out file-sharing transmission; For family LAN network users, reduce lookup complexity when user sharing file, user be not necessarily to inquire the IP of other side or Person's user name searches shared file position without network neighbor is opened, easy to operate, total especially for local area network It enjoys principle to understand for less user, checking for shared file can be completed without carrying out additional study, practicability is high.
It corresponds to the above method, the embodiment of the present invention also provides a kind of file sharing device, referring to Fig. 6, the device 600 include:
First determination unit 610, for determining target electronic device information, the first shared setting parameter and shared file Parameter information;
First packet generation unit 620, the described first shared setting parameter for being determined according to the first determination unit 610 with And the parameter information of the shared file generates the first shared information packet;
First transmission unit 630, the first shared information packet hair for generating the first packet generation unit 620 The target electronic device of the target electronic device information instruction is given, so that the target electronic device is total according to described first It enjoys packet and generates the first page for showing the shared file, and the first page is shown on a display screen.
Optionally, which can also include:
First receiving unit, for receiving the file operation requests of target electronic device transmission;The file operation requests It include: the information of at least one shared file and file operation instruction in shared file;
Processing unit refers to for carrying out the file operation at least one shared file described in the shared file Show corresponding file process.
Optionally, the first transmission unit 630 can be also used for:
Within the default first time being sent to the first shared information packet after the target electronic device, if institute It states the first receiving unit and does not receive the file operation requests that the target electronic device is sent, be total to again by described first Packets are enjoyed to the target electronic device.
Optionally, the first packet generation unit 620 generates the first shared data packet also according to the shared file.
Optionally, the first transmission unit 630 can be also used for:
Within default second time being sent to the first shared information packet after the target electronic device, if not The operation acknowledgement information that the target electronic device is sent is received, the first shared information packet is sent to the mesh again Mark electronic equipment;The operation acknowledgement information is sent after carrying out file operation to the shared file by target electronic device.
It optionally, include empty folder in the shared file, which can also include:
Second receiving unit, for receiving the second shared information packet of target electronic device transmission, the described second shared letter It include: the parameter information and at least one file being added in the empty folder that the first page is shown in breath packet Two shared setting parameters;
First page generation unit, for according to the second receiving unit receive described at least one file parameter letter Breath and the second shared setting parameter generate the second page for showing at least one file;
First display unit, the second page for generating first page generation unit are shown on a display screen.
It optionally, can also include described at least one in the received second shared information packet of second receiving unit A file, the apparatus may include:
First storage unit is stored in the ineffective law, rule, etc. at least one file described in receiving the second receiving unit In part folder.
Optionally, the second page can be realized by pop-up box or dialog box.
Optionally, the first display unit specifically can be used for:
Directly the second page is shown on a display screen;Alternatively,
The prompt icon of the second page is set in taskbar;User is received to the specified behaviour of the prompt icon When making, the first page is shown on a display screen.
In the present embodiment, after target electronic device receives the first shared information packet, according to the described first shared letter Breath packet generates the first page for showing the shared file, and shows on a display screen, to use the use of target electronic device The time delay that family gets shared file is relatively fewer, and sharing efficiency is high;Moreover, user can be without any selection operation Check that shared file, the time delay of file-sharing are further reduced by first page on display screen, file-sharing efficiency into One step improves.
It is file sharing device second embodiment schematic diagram of the present invention referring to Fig. 7, which includes:
Third receiving unit 710, for receiving the first shared information packet of source electronic equipment transmission;Described first shared letter It include: the parameter information of the first shared setting parameter and shared file in breath packet;
Second page generation unit 720, for according to the shared setting parameter of third receiving unit 710 received described first And the parameter information of the shared file generates the first page for showing the shared file;
Second display unit 730, the first page for generating second page generation unit 720, which is shown, to be shown On screen, so that user carries out file operation to the shared file shown in first page.
Optionally, which can also include:
First acquisition unit, for obtaining the shared text of at least one in the first page that user shows the second display unit The file operation of part indicates;
Request generation unit, for according to first acquisition unit obtain described at least one shared file parameter information And the file operation instruction generates file operation requests;
Second transmission unit, the file operation requests for generating request unit are sent to source electronic equipment, with Just source electronic equipment carries out file operation at least one shared file described in shared file and indicates corresponding file process.
It optionally, can also include: the shared file in the first shared information packet;The device can also include:
Second storage unit, for storing the shared file in the first shared information packet;
Acquiring unit is operated, the file operation of at least one shared file in first page is indicated for obtaining user;
Operation processing unit carries out the file behaviour at least one shared file described in the shared file to storage Indicate indicated file operation.
It optionally, may include empty folder in the shared file, which can also include:
Second acquisition unit is added to what the first page that second display unit is shown was shown for obtaining The parameter information of at least one file in the empty folder and the second shared setting parameter;
Second packet generation unit, for according to second acquisition unit obtain described at least one file parameter information with And second shared setting parameter generate the second shared information packet;
Third transmission unit, for the second shared information packet to be sent to source electronic equipment, so as to the source electronics Equipment generates the second page for showing at least one file according to the second shared information packet, and by the second page Display is on a display screen.
Optionally, the first page can be realized by pop-up box or dialog box.
Optionally, the second display unit specifically can be used for:
Directly the first page is shown on a display screen;Alternatively,
The prompt icon of the first page is set in taskbar;User is received to the specified behaviour of the prompt icon When making, the first page is shown on a display screen.
In the present embodiment, after target electronic device receives the first shared information packet, according to the described first shared letter Breath packet generates the first page for showing the shared file, and shows on a display screen, to use the use of target electronic device The time delay that family gets shared file is relatively fewer, and sharing efficiency is high;Moreover, user can be without any selection operation Check that shared file, the time delay of file-sharing are further reduced by first page on display screen, file-sharing efficiency into One step improves.
It is source of embodiment of the present invention electronic devices structure schematic diagram, which includes: processor referring to Fig. 8 810, memory 820, transceiver 830, bus 840 and display screen 850;
Processor 810, memory 820, transceiver 830, display screen 850 are connected with each other by bus 840;Bus 840 can To be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, control bus etc.. Only to be indicated with a thick line in Fig. 8, it is not intended that an only bus or a type of bus convenient for indicating.
Memory 820 can be also used for storing the shared file for storing program.Specifically, program may include Program code, said program code include computer operation instruction.Memory 820 may include high speed RAM memory, it is also possible to It further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Display screen 850 is the input interface and output interface between electronic equipment and user, and visual output is shown to use Family, visual output may include figure, text, icon, video etc..
The processor 810 executes said program code, for determining target electronic device information, the first shared setting ginseng Several and shared file parameter information;Parameter information according to the described first shared setting parameter and the shared file is raw At the first shared information packet;
Transceiver 830 is communicated for connecting other equipment with other equipment.Transceiver 830 is used for: by processor 810 the first shared information packets generated are sent to the target electronic device of the target electronic device information instruction, so as to The target electronic device generates the first page for showing the shared file according to the first shared information packet, and will be described First page is shown on display screen 850.
Optionally, transceiver 830 can be also used for: receive the file operation requests that target electronic device is sent;The text Part operation requests include: the information of at least one shared file and file operation instruction in shared file;
Processor 810 can be also used for: to transceiver 830 receive described at least one shared file information indicate At least one described shared file carry out the file operation and indicate corresponding file process.
Optionally, transceiver 830 can be also used for: set the first shared information packet is sent to the target electronic In default first time after standby, if not receiving the file operation requests that the target electronic device is sent, again The first shared information packet is sent to the target electronic device.
Optionally, processor 810 is generated when generating the first shared information packet also according to the shared file.
Optionally, transceiver 830 can be also used for: set the first shared information packet is sent to the target electronic In default second time after standby, if the operation acknowledgement information that the target electronic device is sent is not received, again by institute It states the first shared information packet and is sent to the target electronic device;The operation acknowledgement information is in target electronic device to described total It enjoys after file carries out file operation and sending.
Optionally, include empty folder in the shared file, transceiver 830 can be also used for: receiving target electronic and set The second shared information packet that preparation is sent includes: the sky for being added to the first page and showing in the second shared information packet The parameter information of at least one file in file and the second shared setting parameter;
Processor 810 can be also used for: according to transceiver 830 receive described at least one file parameter information with And described second shared setting parameter generate the second page for showing at least one file;The second page is shown On display screen 850.
It optionally, can also include at least one described file in the second shared information packet, processor 810 can be with For: at least one described file is stored in the empty folder stored in memory 820.
Optionally, the second page can be realized by pop-up box or dialog box.
Optionally, processor 810 specifically can be used for: directly show the second page on display screen 850;Or The prompt icon of the second page is arranged in person in taskbar;When receiving specified operation of the user to the prompt icon, The second page is shown on display screen 850.
In the present embodiment, after user has carried out file-sharing on the electronic equipment of source, source electronic equipment is set to target electronic Preparation directly shows first page to user after sending the first shared information packet, target electronic device to receive the first shared information packet Face, the time delay for getting shared file using the user of target electronic device is relatively fewer, and sharing efficiency is high;Moreover, with Family can check shared file by first page on a display screen without any selection operation, the time delay of file-sharing into One step is reduced, and file-sharing efficiency further increases.
It is target electronic device of embodiment of the present invention structural schematic diagram referring to Fig. 9, which includes: place Manage device 910, memory 920, transceiver 930, bus 940 and display screen 950;
Processor 910, memory 920, transceiver 930, display screen 950 are connected with each other by bus 940;Bus 940 can To be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, control bus etc.. Only to be indicated with a thick line in Fig. 9, it is not intended that an only bus or a type of bus convenient for indicating.
Memory 920 can be also used for storing the shared file for storing program.Specifically, program may include Program code, said program code include computer operation instruction.Memory 920 may include high speed RAM memory, it is also possible to It further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Display screen 950 is the input interface and output interface between electronic equipment and user, and visual output is shown to use Family, visual output may include figure, text, icon, video etc..
Transceiver 930 is communicated for connecting other equipment with other equipment.Transceiver 930 is used for: receiving source electricity The first shared information packet that sub- equipment is sent;It include: the first shared setting parameter in the first shared information packet and shared The parameter information of file;
The processor 910 executes said program code, for according to the described first shared setting parameter and described total The parameter information for enjoying file generates the first page for showing the shared file;The first page is shown in display screen 850 On, so that user carries out file operation to the shared file shown in first page.
Optionally, processor 910 can be also used for: obtain user to the file of at least one shared file in first page Operation instruction;File operation is generated according to the parameter information of at least one shared file and file operation instruction to ask It asks;
Transceiver 930 can be also used for: the file operation requests that processor 910 is generated are sent to source electronics and set It is standby, it is indicated at corresponding file so that source electronic equipment carries out file operation at least one shared file described in shared file Reason.
It optionally, can also include: the shared file in the first shared information packet;Processor 910 can also be used In: the shared file in the first shared information packet is stored to memory 920;User is obtained in first page at least one The file operation of a shared file indicates;At least one shared file described in shared file to storage carries out the file behaviour Indicate indicated file operation.
Optionally, may include empty folder in the shared file, processor 910 can be also used for: acquisition is added The parameter information of at least one file in the empty folder that the first page is shown and the second shared setting ginseng Number;The second shared information packet is generated according to the parameter information of at least one file and the second shared setting parameter;
Transceiver 930 can be also used for: the second shared information packet that processor 910 is generated is sent to source electronics and sets It is standby, so that the source electronic equipment is according to the second page of the second shared information packet generation displaying at least one file Face, and the second page is shown on a display screen.
Optionally, the first page is realized by pop-up box or dialog box.
Optionally, processor 910 specifically can be used for: directly show the first page on display screen 950;Or The prompt icon of the first page is arranged in person in taskbar;When receiving specified operation of the user to the prompt icon, The first page is shown on display screen 950.
In the present embodiment, after target electronic device receives the first shared information packet, according to the described first shared letter Breath packet generates the first page for showing the shared file, and shows on a display screen, to use the use of target electronic device The time delay that family gets shared file is relatively fewer, and sharing efficiency is high;Moreover, user can be without any selection operation Check that shared file, the time delay of file-sharing are further reduced by first page on display screen, file-sharing efficiency into One step improves.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present invention substantially or Say that the part that contributes to existing technology can be embodied in the form of software products, which can deposit Storage is in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that computer equipment (can be with It is personal computer, server or the network equipment etc.) execute certain part institutes of each embodiment of the present invention or embodiment The method stated.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The embodiments of the present invention described above are not intended to limit the scope of the present invention.It is any in the present invention Spirit and principle within made modifications, equivalent substitutions and improvements etc., should all be included in the protection scope of the present invention.

Claims (28)

1. a kind of file sharing method characterized by comprising
Determine the parameter information of target electronic device information, the first shared setting parameter and shared file;
The first shared information packet is generated according to the parameter information of the described first shared setting parameter and the shared file;
The first shared information packet is sent to the target electronic device of the target electronic device information instruction, so as to described Target electronic device generates the first page for showing the shared file according to the first shared information packet, and by described first The page is shown on a display screen;
Wherein, the described first shared setting parameter includes: the reading attributes and editable attribute of shared file, the shared file Parameter information include: that file name, file size, file format, file are shared in time and file settling time extremely Few one kind;
The parameter information according to the described first shared setting parameter and the shared file generates the first shared information packet It specifically includes:
According to the shared file, the reading attributes of the shared file and editable attribute and the file name, file Size, file format, file are shared at least one of time and file settling time, generate the first shared information packet.
2. the method according to claim 1, wherein the first shared information packet is sent to the target electricity After sub- equipment, this method further include:
Receive the file operation requests that target electronic device is sent;The file operation requests are as target electronic device according to The parameter information of at least one shared file and file operation instruction generate;
The file operation is carried out at least one shared file described in the shared file and indicates corresponding file process.
3. the method according to claim 1, wherein the first shared information packet is sent to the target electricity After sub- equipment, this method further include:
Within the default first time being sent to the first shared information packet after the target electronic device, if do not received The first shared information packet is sent to the target electricity again by the file operation requests sent to the target electronic device Sub- equipment.
4. the method according to claim 1, wherein the first shared information packet is sent to the target electricity After sub- equipment, this method further include:
Within default second time being sent to the first shared information packet after the target electronic device, if do not received The first shared information packet is sent to the target electricity again by the operation acknowledgement information sent to the target electronic device Sub- equipment;The operation acknowledgement information is sent after carrying out file operation to the shared file by target electronic device.
5. method according to any one of claims 1 to 4, which is characterized in that include empty folder in the shared file; After the first shared information packet is sent to the target electronic device, this method further include:
The second shared information packet that target electronic device is sent is received, includes: to be added to institute in the second shared information packet State the parameter information and the second shared setting parameter of at least one file in the empty folder of first page displaying;
It generates according to the parameter information of at least one file and the second shared setting parameter and shows described at least one The second page of a file;
The second page is shown on a display screen.
6. according to the method described in claim 5, it is characterized in that, further including described at least one in the second shared information packet A file;After receiving the second shared information packet that target electronic device is sent, this method comprises:
At least one described file is stored in the empty folder.
7. according to the method described in claim 5, it is characterized in that, the second page is realized by pop-up box or dialog box.
8. according to the method described in claim 5, it is characterized in that, the second page shown including: on a display screen
Directly the second page is shown on a display screen;Alternatively,
The prompt icon of the second page is set in taskbar;Receive specified operation of the user to the prompt icon When, the second page is shown on a display screen.
9. a kind of file sharing method characterized by comprising
The first shared information packet that reception source electronic equipment is sent;It include: the first shared setting in the first shared information packet The parameter information of parameter and shared file, the described first shared setting parameter include: the reading attributes of shared file and can compile Volume attribute, the parameter information of the shared file include: file name, file size, file format, file be shared the time and At least one of file settling time;
It is generated according to the parameter information of the described first shared setting parameter and the shared file and shows the shared file First page;
The first page is shown on a display screen, so that user carries out text to the shared file shown in first page Part operation;
Wherein, it is described total to generate displaying for the parameter information according to the described first shared setting parameter and the shared file Enjoy the first page of file, comprising:
According to the reading attributes of the shared file and editable attribute and file name, file size, file format, text Part is shared at least one of time and file settling time, generates the first page for showing the shared file.
10. according to the method described in claim 9, it is characterized in that, being somebody's turn to do after the first page is shown on a display screen Method further include:
User is obtained to indicate the file operation of at least one shared file in first page;
File operation requests are generated according to the parameter information of at least one shared file and file operation instruction;
The file operation requests are sent to source electronic equipment, so as to source electronic equipment to described in shared file at least one Shared file carries out file operation and indicates corresponding file process.
11. according to the method described in claim 9, it is characterized in that, in the first shared information packet further include: described shared File;After the first page is shown on a display screen, this method further include:
Store the shared file in the first shared information packet;
User is obtained to indicate the file operation of at least one shared file in first page;
At least one shared file described in shared file to storage carries out the indicated file behaviour of the file operation instruction Make.
12. according to the described in any item methods of claim 9 to 11, which is characterized in that include empty file in the shared file Folder;After the first page is shown on a display screen, this method further include:
Obtain at least one file being added in the empty folder that the first page is shown parameter information and Second shared setting parameter;
The second shared information packet is generated according to the parameter information of at least one file and the second shared setting parameter;
The second shared information packet is sent to source electronic equipment, so that the source electronic equipment is according to the described second shared letter Breath packet generates the second page for showing at least one file, and the second page is shown on a display screen.
13. according to the described in any item methods of claim 9 to 11, which is characterized in that the first page by pop-up box or Dialog box is realized.
14. according to the described in any item methods of claim 9 to 11, which is characterized in that show the first page and showing Include: on screen
Directly the first page is shown on a display screen;Alternatively,
The prompt icon of the first page is set in taskbar;Receive specified operation of the user to the prompt icon When, the first page is shown on a display screen.
15. a kind of file sharing device characterized by comprising
First determination unit, for determining the parameter of target electronic device information, the first shared setting parameter and shared file Information;
First packet generation unit, the described first shared setting parameter for being determined according to the first determination unit and described shared The parameter information of file generates the first shared information packet;
First transmission unit, the first shared information packet for generating the first packet generation unit are sent to the mesh The target electronic device of electronic device information instruction is marked, so that the target electronic device is according to the first shared information Bao Sheng At the first page of the displaying shared file, and the first page is shown on a display screen;
Wherein, the described first shared setting parameter includes: the reading attributes and editable attribute of shared file, the shared file Parameter information include: that file name, file size, file format, file are shared in time and file settling time extremely Few one kind;
The first packet generation unit, specifically for that according to the reading attributes of the shared file, the shared file and can compile It collects attribute and the file name, file size, file format, file is shared in time and file settling time extremely Few one kind, generates the first shared information packet.
16. device according to claim 15, which is characterized in that the device further include:
First receiving unit, for receiving the file operation requests of target electronic device transmission;The file operation requests include: The information of at least one shared file and file operation instruction in shared file;
Processing unit, for carrying out the file operation instruction pair at least one shared file described in the shared file The file process answered.
17. device according to claim 15, which is characterized in that the first transmission unit is also used to:
Within the default first time being sent to the first shared information packet after the target electronic device, if first connects It receives unit and does not receive the file operation requests that the target electronic device is sent, again by the first shared information packet It is sent to the target electronic device.
18. device according to claim 15, which is characterized in that the first transmission unit is also used to:
Within default second time being sent to the first shared information packet after the target electronic device, if do not received The first shared information packet is sent to the target electricity again by the operation acknowledgement information sent to the target electronic device Sub- equipment;The operation acknowledgement information is sent after target electronic device carries out file operation to the shared file.
19. 5 to 18 described in any item devices according to claim 1, which is characterized in that include empty file in the shared file Folder, the device further include:
Second receiving unit, for receiving the second shared information packet of target electronic device transmission, the second shared information packet In include: the parameter information of at least one file being added in the empty folder that the first page is shown and second total Enjoy setting parameter;
First page generation unit, for according to the second receiving unit receive described at least one file parameter information with And described second shared setting parameter generate the second page for showing at least one file;
First display unit, the second page for generating first page generation unit are shown on a display screen.
20. device according to claim 19, which is characterized in that second receiving unit received described second is shared It further include at least one described file in packet, which includes:
First storage unit is stored in the empty folder at least one file described in receiving the second receiving unit In.
21. device according to claim 19, which is characterized in that the second page is real by pop-up box or dialog box It is existing.
22. device according to claim 19, which is characterized in that the first display unit is specifically used for:
Directly the second page is shown on a display screen;Alternatively,
The prompt icon of the second page is set in taskbar;Receive specified operation of the user to the prompt icon When, the second page is shown on a display screen.
23. a kind of file sharing device characterized by comprising
Third receiving unit, for receiving the first shared information packet of source electronic equipment transmission;In the first shared information packet It include: the parameter information of the first shared setting parameter and shared file, the described first shared setting parameter includes: shared file Reading attributes and editable attribute, the parameter information of the shared file include: file name, file size, file format, File is shared at least one of time and file settling time;
Second page generation unit, for according to the shared setting parameter of third receiving unit received described first and described total The parameter information for enjoying file generates the first page for showing the shared file;
Second display unit, the first page for generating second page generation unit show on a display screen, so as to User carries out file operation to the shared file shown in first page;
The second page generation unit, specifically for the reading attributes and editable attribute according to the shared file, and File name, file size, file format, file are shared at least one of time and file settling time, generate and show The first page of the shared file.
24. device according to claim 23, which is characterized in that the device further include:
First acquisition unit, for obtaining at least one shared file in the first page that user shows the second display unit File operation instruction;
Request generation unit, for according to first acquisition unit obtain described at least one shared file parameter information and The file operation instruction generates file operation requests;
Second transmission unit, the file operation requests for generating request unit are sent to source electronic equipment, so as to source Electronic equipment carries out file operation at least one shared file described in shared file and indicates corresponding file process.
25. device according to claim 23, which is characterized in that in the first shared information packet further include: described total Enjoy file;The device further include:
Second storage unit, for storing the shared file in the first shared information packet;
Acquiring unit is operated, the file operation of at least one shared file in first page is indicated for obtaining user;
Operation processing unit carries out the file operation at least one shared file described in the shared file to storage and refers to Show indicated file operation.
26. according to the described in any item devices of claim 23 to 25, which is characterized in that include empty file in the shared file Folder, the device further include:
Second acquisition unit is added to described in the first page displaying that second display unit is shown for obtaining The parameter information of at least one file in empty folder and the second shared setting parameter;
Second packet generation unit, for according to second acquisition unit obtain described at least one file parameter information and Two shared setting parameters generate the second shared information packet;
Third transmission unit, for the second shared information packet to be sent to source electronic equipment, so as to the source electronic equipment The second page for showing at least one file is generated according to the second shared information packet, and the second page is shown On a display screen.
27. according to the described in any item devices of claim 23 to 25, which is characterized in that the first page by pop-up box, Or dialog box is realized.
28. according to the described in any item devices of claim 23 to 25, which is characterized in that the second display unit is specifically used for:
Directly the first page is shown on a display screen;Alternatively,
The prompt icon of the first page is set in taskbar;Receive specified operation of the user to the prompt icon When, the first page is shown on a display screen.
CN201310726433.0A 2013-12-25 2013-12-25 A kind of file sharing method and device Active CN104750372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310726433.0A CN104750372B (en) 2013-12-25 2013-12-25 A kind of file sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310726433.0A CN104750372B (en) 2013-12-25 2013-12-25 A kind of file sharing method and device

Publications (2)

Publication Number Publication Date
CN104750372A CN104750372A (en) 2015-07-01
CN104750372B true CN104750372B (en) 2019-02-01

Family

ID=53590153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310726433.0A Active CN104750372B (en) 2013-12-25 2013-12-25 A kind of file sharing method and device

Country Status (1)

Country Link
CN (1) CN104750372B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306527A (en) * 2015-09-14 2016-02-03 联想(北京)有限公司 Data sharing method and device
CN107092634B (en) * 2017-02-13 2021-04-27 口碑控股有限公司 Method and device for realizing page preview
CN110601960B (en) * 2019-09-09 2020-08-21 珠海格力电器股份有限公司 Selective report sharing method, server, terminal and system
CN111767498A (en) * 2019-11-15 2020-10-13 北京沃东天骏信息技术有限公司 Method and device for realizing file information sharing
CN111339451B (en) * 2020-02-14 2023-04-18 支付宝(杭州)信息技术有限公司 Method, apparatus and machine-readable storage medium for information processing
EP4137957A4 (en) * 2020-05-15 2023-10-04 Huawei Technologies Co., Ltd. File sharing method and terminal device
CN114465972B (en) * 2021-06-11 2023-11-21 北京字跳网络技术有限公司 Method, apparatus, device and computer readable storage medium for folder transmission
CN113836105A (en) * 2021-09-27 2021-12-24 深圳市绿联科技股份有限公司 File sharing method, file display device and storage medium
CN114237464B (en) * 2021-11-11 2022-11-04 荣耀终端有限公司 Data sharing method and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3876607B2 (en) * 2000-10-24 2007-02-07 松下電工株式会社 Parameter setting method in image processing system
CN101287189B (en) * 2007-04-09 2012-06-20 中国移动通信集团公司 Displaying method of terminal, server and terminal
JPWO2009008382A1 (en) * 2007-07-12 2010-09-09 日本電気株式会社 Electronic device, information output method and program
CN101754433A (en) * 2009-12-24 2010-06-23 深圳市同洲电子股份有限公司 Method for displaying file content in mobile terminal and mobile terminal
CN102075544A (en) * 2011-02-18 2011-05-25 博视联(苏州)信息科技有限公司 Encryption system, encryption method and decryption method for local area network shared file
CN103092544A (en) * 2011-10-27 2013-05-08 汉王科技股份有限公司 Method and system for sharing electronic files among electronic devices
CN103125107B (en) * 2012-06-13 2016-08-24 华为终端有限公司 Realize sharing the method for information, subscriber equipment and server and device

Also Published As

Publication number Publication date
CN104750372A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN104750372B (en) A kind of file sharing method and device
US20140372447A1 (en) Knowledge index system and method of providing knowledge index
CN107491296A (en) The message application docked with one or more extension applications
US9813365B2 (en) Integrated real-time digital communication platform
TW201737681A (en) Method and apparatus for implementing instant messaging
CN107430502A (en) The voice command for software application is inferred by help information dynamic
CN105745649A (en) Link insertion and link preview features
CN102737080A (en) Method for hiding real path of file for cloud processing
CN107783996A (en) A kind of method and apparatus for sharing files
CN107831974A (en) information sharing method, device and storage medium
US10372512B2 (en) Method and apparatus for automatic processing of service requests on an electronic device
EP2959395A1 (en) Method and system for publication and sharing of files via the internet
CN109634607A (en) A kind of method and device of Code automatic build
EP3055761A1 (en) Framework for screen content sharing system with generalized screen descriptions
US20130046935A1 (en) Shared copy cache across networked devices
EP2990947A1 (en) Method and apparatus for backing up data and electronic device
WO2014101416A1 (en) File displaying method and apparatus
JP2005228338A (en) System and method for selecting customized documents
CN108306966A (en) Document processing method, device, system, terminal and server
CN110221759A (en) A kind of element dragging method, device, storage medium and interactive intelligent tablet computer
CN103888505B (en) A kind of method, system, terminal device and the server of file transmission
US20200233878A1 (en) Card-based information management method and system
CN103049448A (en) File management method and file management system
CN106503062B (en) A kind of social dynamically dissemination method and device, user terminal
JP2006099442A5 (en)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant