Movatterモバイル変換


[0]ホーム

URL:


CN105868358B - File processing method and electronic equipment - Google Patents

File processing method and electronic equipment
Download PDF

Info

Publication number
CN105868358B
CN105868358BCN201610188559.0ACN201610188559ACN105868358BCN 105868358 BCN105868358 BCN 105868358BCN 201610188559 ACN201610188559 ACN 201610188559ACN 105868358 BCN105868358 BCN 105868358B
Authority
CN
China
Prior art keywords
file
action
target position
instruction
executed
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
CN201610188559.0A
Other languages
Chinese (zh)
Other versions
CN105868358A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing LtdfiledCriticalLenovo Beijing Ltd
Priority to CN201610188559.0ApriorityCriticalpatent/CN105868358B/en
Publication of CN105868358ApublicationCriticalpatent/CN105868358A/en
Application grantedgrantedCritical
Publication of CN105868358BpublicationCriticalpatent/CN105868358B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a file processing method and electronic equipment. According to the scheme, the first action is executed when the first file is stored to the target position through recording, and after the second file needing to be stored is found, the first action is executed, so that the second file can be stored to the target position, namely, the file can be stored to the target position only by executing the first action, multiple times of entering and exiting of the target position are avoided, the operation of storing a plurality of files to the target position can be realized only by entering and exiting the target position once, the operation is simple, and the time is saved.

Description

File processing method and electronic equipment
Technical Field
The present invention relates to the field of processing, and in particular, to a file processing method and an electronic device.
Background
At present, when files are copied, under the condition that source files are stored in a plurality of source paths, the source files need to enter and exit a target position for a plurality of times during copying, and the copying process is complicated.
For example: the method comprises the steps that source files are separately stored in a first folder and a second folder of a C disc, the source files stored in the first folder and the second folder are copied into a first subfolder under a third folder of a D disc, in the copying process, copying operation needs to be carried out on the source files stored in the first folder of the C disc firstly, then the first folder of the C disc is transferred to the first subfolder under the third folder of the D disc, pasting operation needs to be carried out, then the first subfolder under the third folder of the D disc is transferred to a second folder of the C disc, copying operation is carried out on the source files, then the second folder of the C disc is transferred to the first subfolder under the third folder of the D disc, and pasting operation needs to be carried out, and therefore copying of the source files is completed.
In the above process, the user needs to access the target location for multiple times, i.e. access the first subfolder under the third folder of the D-disc for multiple times, which increases the complexity of the copying process of the source file and wastes time.
Disclosure of Invention
In view of the above, the present invention provides a file processing method and an electronic device, so as to solve the problems that in the prior art, in the process of copying source files stored in a plurality of source paths, multiple accesses to a target location are required, the operation is complex, and time is wasted, and the specific scheme is as follows:
a method of file processing, comprising:
executing a first action when the first file is stored from the original position to the target position;
recording the target position and the first action;
and when the second file is found, executing the first action, and storing the second file to the target position.
Further, when the first file is stored from the original position to the target position, a first action is executed, specifically:
executing a received first storage instruction sent to the selected first file, wherein the first storage instruction is as follows: a first copy instruction or a first cut instruction;
and moving the interface to the target position, executing the first paste instruction, and executing the first action.
Further, when the first file is stored from the original position to the target position, a first action is executed, specifically:
executing a received first storage instruction sent to the selected first file, wherein the first storage instruction is as follows: a first copy instruction or a first cut instruction;
performing a first action;
and moving the interface to the target position, and executing a first paste instruction.
Further, when the second file is found, the first action is executed, specifically:
and when the second file is found, selecting the second file and executing the first action.
Further, when the second file is found, the first action is executed, specifically:
when the second file is found, receiving a second storage instruction aiming at the second file, and executing the first action, wherein the second storage instruction is as follows: a second copy instruction or a second cut instruction.
An electronic device, comprising: a memory and a processor, wherein:
the processor is used for executing a first action when the first file is stored from the original position to the target position;
the memory is used for recording the target position and the first action;
and the processor is also used for executing the first action and storing the second file to the target position when the second file is found.
Further, when the processor stores the first file from the home position to the target position, the processor executes a first action, specifically:
the processor executes a received first storage instruction sent to the selected first file, the first storage instruction is a first copying instruction or a first cutting instruction, the interface is moved to a target position, a first pasting instruction is executed, and meanwhile, a first action is executed.
Further, when the processor stores the first file from the home position to the target position, the processor executes a first action, specifically:
the processor executes a received first storage instruction sent to the selected first file, wherein the first storage instruction is as follows: the first copying instruction or the first cutting instruction executes a first action, moves the interface to a target position and executes a first pasting instruction.
Further, when the processor finds the second file, the processor executes a first action, specifically:
and when finding a second file, the processor selects the second file and executes the first action.
Further, when the processor finds the second file, the processor executes a first action, specifically:
when finding a second file, the processor receives a second storage instruction for the second file, and executes the first action, where the second storage instruction is: a second copy instruction or a second cut instruction.
According to the technical scheme, the file processing method and the electronic device disclosed by the application execute the first action and record the target position and the first action when the first file is stored to the target position from the original position, and execute the first action and store the second file to the target position when the second file is found. According to the scheme, the first action is executed when the first file is stored to the target position through recording, and after the second file needing to be stored is found, the first action is executed, so that the second file can be stored to the target position, namely, the file can be stored to the target position only by executing the first action, multiple times of entering and exiting of the target position are avoided, the operation of storing a plurality of files to the target position can be realized only by entering and exiting the target position once, the operation is simple, and the time is saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a document processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a document processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a file processing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses a file processing method, the flow chart of which is shown in figure 1, comprising the following steps:
step S11, when the first file is stored from the original position to the target position, executing a first action;
storing the first file from the home position to the target position may specifically be: copying the first file from its original storage location to a target location; the following steps can be also included: and moving the first file from the original storage position to the target position, namely cutting the first file from the original storage position to the target position.
Executing a first action, which may be specifically: performing a first action in storing the first file from the home position to the target position; the following steps can be also included: in the process of storing the first file from the original position to the target position, the first action is decomposed into a first sub-action and a second sub-action, the first sub-action is executed when the first file is selected in the original storage position, and the second sub-action is executed when the first file is stored in the target position.
Step S12, recording the target position and the first action;
and recording the target position and the first action so as to execute the first action when other files are stored to the target position subsequently, and realizing the first action without searching the path of the target position again.
And step S13, when the second file is found, executing a first action, and storing the second file to a target position.
Specifically, the following may be mentioned: when the second file is found, the second file is selected, and the first action is executed at the original storage position of the second file, so that the second file can be copied or moved to the target position; when the first action comprises: and when the first sub-action and the second sub-action are carried out, after the second file is selected, the first sub-action is executed, and then the second sub-action is executed, so that the second file is copied or moved to the target position.
In the file processing method disclosed in this embodiment, when the first file is stored from the original position to the target position, the first action is executed, the target position and the first action are recorded, and when the second file is found, the first action is executed, and the second file is stored to the target position. According to the scheme, the first action is executed when the first file is stored to the target position through recording, and after the second file needing to be stored is found, the first action is executed, so that the second file can be stored to the target position, namely, the file can be stored to the target position only by executing the first action, multiple times of entering and exiting of the target position are avoided, the operation of storing a plurality of files to the target position can be realized only by entering and exiting the target position once, the operation is simple, and the time is saved.
The embodiment discloses a file processing method, a flowchart of which is shown in fig. 2, and the method comprises the following steps:
step S21, executing a first storage instruction sent to the selected first file, where the first storage instruction is: a first copy instruction or a first cut instruction;
and sending a first storage instruction aiming at the first file, wherein the selection of the first file can be clicking the first file or executing a certain preset action aiming at the first file to realize the selection of the first file.
Step S22, moving the interface to the target position, executing a first paste instruction, and simultaneously executing a first action;
when the first copying instruction or the first cutting instruction is executed, the display of the electronic equipment displays an interface where the original storage position of the first file is located, and after the interface where the original storage position of the first file is located is moved to the interface where the target position is located from the interface where the original storage position of the first file, the first pasting instruction is executed, so that the first file is copied to the target position or moved to the target position.
In the process of copying or moving the first file to the target location, the first action is executed, and may be: executing the first action when executing the first paste instruction, or executing the first action after executing the first paste instruction; the method can also comprise the following steps: in the process of storing the first file from the original position to the target position, the first action is decomposed into a first sub-action and a second sub-action, the first sub-action is executed when the first file is selected in the original storage position, and the second sub-action is executed when the first file is stored in the target position.
Step S23, recording the target position and the first action;
and step S24, when the second file is found, executing a first action, and storing the second file to a target position.
In the file processing method disclosed in this embodiment, when the first file is stored from the original position to the target position, the first action is executed, the target position and the first action are recorded, and when the second file is found, the first action is executed, and the second file is stored to the target position. According to the scheme, the first action is executed when the first file is stored to the target position through recording, and after the second file needing to be stored is found, the first action is executed, so that the second file can be stored to the target position, namely, the file can be stored to the target position only by executing the first action, multiple times of entering and exiting of the target position are avoided, the operation of storing a plurality of files to the target position can be realized only by entering and exiting the target position once, the operation is simple, and the time is saved.
The embodiment discloses a file processing method, a flowchart of which is shown in fig. 3, and the method comprises the following steps:
step S31, executing a first storage instruction sent to the selected first file, where the first storage instruction is: a first copy instruction or a first cut instruction;
step S32, executing a first action;
after executing the first storage instruction issued for the first file, a first action is executed, which may be specifically: the operation at a certain moment may be a continuous operation.
When the first action is taken as an action at a certain moment, namely after a first storage instruction is executed for a first file, the first action is executed, and when the interface is moved to the target position, the first action is executed;
when the first action is a continuous action, namely after the first storage instruction is executed for the first file, the first action is started to be executed until the interface is moved to the target position or the first paste instruction is executed, and the first action is not executed completely.
Step S33, moving the interface to a target position, and executing a first paste instruction;
step S34, recording the target position and the first action;
and step S35, when the second file is found, executing a first action, and storing the second file to a target position.
When the second file is found, executing a first action, which may specifically be: when the second file is found, receiving a second storage instruction aiming at the second file, and executing a first action, wherein the second storage instruction is as follows: a second copy instruction or a second cut instruction, that is, after receiving the second storage instruction, executing the first action, that is, the first action only implements pasting the second file to the target location;
the method can also comprise the following steps: when the second file is found, the second file is selected, the first action is directly executed, and the second file can be stored in the target position, so that the second file can be copied and pasted to the target position or the second file can be cut and pasted to the target position by the first action.
In the file processing method disclosed in this embodiment, when the first file is stored from the original position to the target position, the first action is executed, the target position and the first action are recorded, and when the second file is found, the first action is executed, and the second file is stored to the target position. According to the scheme, the first action is executed when the first file is stored to the target position through recording, and after the second file needing to be stored is found, the first action is executed, so that the second file can be stored to the target position, namely, the file can be stored to the target position only by executing the first action, multiple times of entering and exiting of the target position are avoided, the operation of storing a plurality of files to the target position can be realized only by entering and exiting the target position once, the operation is simple, and the time is saved.
The embodiment discloses an electronic device, a schematic structural diagram of which is shown in fig. 4, and the electronic device includes:
a memory 41 and aprocessor 42.
Theprocessor 42 executes a first action while storing the first file from the home position to the target position;
storing the first file from the home position to the target position may specifically be: copying the first file from its original storage location to a target location; the following steps can be also included: and moving the first file from the original storage position to the target position, namely cutting the first file from the original storage position to the target position.
Executing a first action, which may be specifically: performing a first action in storing the first file from the home position to the target position; the following steps can be also included: in the process of storing the first file from the original position to the target position, the first action is decomposed into a first sub-action and a second sub-action, the first sub-action is executed when the first file is selected in the original storage position, and the second sub-action is executed when the first file is stored in the target position.
When the processor stores the first file from the home position to the target position, the processor executes a first action, which may specifically be: the processor executes a received first storage instruction sent to the selected first file, the first storage instruction is a first copying instruction or a first cutting instruction, the interface is moved to a target position, a first pasting instruction is executed, and meanwhile a first action is executed.
And sending a first storage instruction aiming at the first file, wherein the selection of the first file can be clicking the first file or executing a certain preset action aiming at the first file to realize the selection of the first file.
When the first copying instruction or the first cutting instruction is executed, the display of the electronic equipment displays an interface where the original storage position of the first file is located, and after the interface where the original storage position of the first file is located is moved to the interface where the target position is located from the interface where the original storage position of the first file, the first pasting instruction is executed, so that the first file is copied to the target position or moved to the target position.
In the process of copying or moving the first file to the target location, the first action is executed, and may be: executing the first action when executing the first paste instruction, or executing the first action after executing the first paste instruction; the method can also comprise the following steps: in the process of storing the first file from the original position to the target position, the first action is decomposed into a first sub-action and a second sub-action, the first sub-action is executed when the first file is selected in the original storage position, and the second sub-action is executed when the first file is stored in the target position.
When the processor stores the first file from the home position to the target position, the processor executes a first action, which may specifically be: the processor executes a received first storage instruction sent to the selected first file, wherein the first storage instruction is as follows: the first copying instruction or the first cutting instruction executes a first action, moves the interface to a target position and executes a first pasting instruction.
After executing the first storage instruction issued for the first file, a first action is executed, which may be specifically: the operation at a certain moment may be a continuous operation.
When the first action is taken as an action at a certain moment, namely after a first storage instruction is executed for a first file, the first action is executed, and when the interface is moved to the target position, the first action is executed;
when the first action is a continuous action, namely after the first storage instruction is executed for the first file, the first action is started to be executed until the interface is moved to the target position or the first paste instruction is executed, and the first action is not executed completely.
The memory 41 records the target position and the first action;
and recording the target position and the first action so as to execute the first action when other files are stored to the target position subsequently, and realizing the first action without searching the path of the target position again.
Processor 42 is also configured to perform a first action to store the second file to the target location when the second file is located.
Specifically, the following may be mentioned: when the second file is found, the second file is selected, and the first action is executed at the original storage position of the second file, so that the second file can be copied or moved to the target position; when the first action comprises: and when the first sub-action and the second sub-action are carried out, after the second file is selected, the first sub-action is executed, and then the second sub-action is executed, so that the second file is copied or moved to the target position.
When the second file is found, executing a first action, which may specifically be: when the second file is found, receiving a second storage instruction aiming at the second file, and executing a first action, wherein the second storage instruction is as follows: a second copy instruction or a second cut instruction, that is, after receiving the second storage instruction, executing the first action, that is, the first action only implements pasting the second file to the target location;
the method can also comprise the following steps: when the second file is found, the second file is selected, the first action is directly executed, and the second file can be stored in the target position, so that the second file can be copied and pasted to the target position or the second file can be cut and pasted to the target position by the first action.
In the electronic device disclosed in this embodiment, when the processor stores the first file from the original position to the target position, the processor executes the first action, and the memory records the target position and the first action. According to the scheme, the first action is executed when the first file is stored to the target position through recording, and after the second file needing to be stored is found, the first action is executed, so that the second file can be stored to the target position, namely, the file can be stored to the target position only by executing the first action, multiple times of entering and exiting of the target position are avoided, the operation of storing a plurality of files to the target position can be realized only by entering and exiting the target position once, the operation is simple, and the time is saved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

CN201610188559.0A2016-03-292016-03-29File processing method and electronic equipmentActiveCN105868358B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610188559.0ACN105868358B (en)2016-03-292016-03-29File processing method and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610188559.0ACN105868358B (en)2016-03-292016-03-29File processing method and electronic equipment

Publications (2)

Publication NumberPublication Date
CN105868358A CN105868358A (en)2016-08-17
CN105868358Btrue CN105868358B (en)2021-10-22

Family

ID=56626361

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610188559.0AActiveCN105868358B (en)2016-03-292016-03-29File processing method and electronic equipment

Country Status (1)

CountryLink
CN (1)CN105868358B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102779006A (en)*2012-06-272012-11-14华为技术有限公司Object transfer method based on touch screen and touch screen intelligent device
CN103268333A (en)*2013-05-082013-08-28天脉聚源(北京)传媒科技有限公司Storage method and storage device
CN104915462A (en)*2015-07-142015-09-16魅族科技(中国)有限公司File management method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9092446B2 (en)*2012-11-292015-07-28Hitachi, Ltd.Storage system and file management method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102779006A (en)*2012-06-272012-11-14华为技术有限公司Object transfer method based on touch screen and touch screen intelligent device
CN103268333A (en)*2013-05-082013-08-28天脉聚源(北京)传媒科技有限公司Storage method and storage device
CN104915462A (en)*2015-07-142015-09-16魅族科技(中国)有限公司File management method and system

Also Published As

Publication numberPublication date
CN105868358A (en)2016-08-17

Similar Documents

PublicationPublication DateTitle
JP6029767B2 (en) Icon arrangement method, apparatus, device, program, and recording medium
WO2013017019A1 (en)Method, sharing platform, and system for sharing image-editing action
CN109859776B (en)Voice editing method and device
WO2018006721A1 (en)Method and apparatus for storing log file
US20150012846A1 (en)Method, System and Mobile Terminal for Deleting Chat Record
EP3891589B1 (en)Human-computer interface for navigating a presentation file
US20170270106A1 (en)Methods and apparatuses for storing file path and accessing local file
JP2020514936A (en) Method and device for quick insertion of voice carrier text
CN108287643B (en)Page layout adjustment method and device
US20210326307A1 (en)Synchronizing changes within a collaborative content management system
WO2017113317A1 (en)File editing method and file editor
CN102693318B (en)Report query method and report query equipment
CN105868358B (en)File processing method and electronic equipment
CN103176800A (en)Application program login method and device
CN105320412B (en) Video file processing method and mobile terminal
EP4050605A1 (en)Method and device for editing video
CN113645499A (en)Video editing method based on cloud
CN112199590B (en) A method, device and storage medium for generating theme scenes based on smart home
CN108650265A (en)Method for down loading and its device, storage medium, the electric terminal of file
CN109992701B (en) A linked list implementation method, device, device and readable storage medium
CN110659295A (en)Method, apparatus and medium for recording valid data based on HAWQ
CN116506451A (en)Cloud storage method, system and storage medium for electronic whiteboard files
CN108920487B (en)Data uploading method and device
CN106648363B (en)Picture batch processing method and system for smart phone
CN111176508A (en)Task interface processing method and related device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp