I want to move files containing a specific keyword to a specific folder

Problem:

I want to move files containing a specific keyword to a specific folder

Solution:

Discussion:

To start with we need to define 3 things:

1. They keyword we are searching for,

2. The folder whose files we shall be looking into

3. The folder to which the files should be moved to in the event the keyword is found within.

It is very important that we understand that the “Read Text from File” action, can only be used to read the contents of files that can be successfully read within notepad.

 

So we use a “Display Input Dialog” action to allow the user define the keyword, we use a “Display Select Folder” dialog to select the folder we shall be looking within for files that contain the keyword we are looking for, and a second “Display Select Folder” dialog to select the folder to which we shall be moving our files.

I want to search for a specific keyword in one or more files

Problem:

I want to search for a specific keyword in one or more files

Solution:

Discussion:

We start our keyword search by specifying the folder and subfolders in which we want to search for text files (or any other type of file that can be read using notepad). Using the Get Files in Folder, we retrieve a list of all the files, that match our criteria, found within the folder (and subfolders) we specified.

Using a For each loop, for each item on the list, we can execute specific actions. So within the loop, we enter a Read Text from File action to read the text of the file we are currently going through, and save its contents to the %FileContents% variable.

I want to open a file, whos path I have on the clipboard

Problem:

I want to open a file, whos path I have on the clipboard

Solution:

Discussion:

This Job works in the same way the “Run” command runs on Windows, the only difference being, is that instead of having to look for the Run field from the Windows menu, once the path is on the clipboard, it gets the path using the “Get Clipboard” action and then it simply opens it using the “Run Application action”.

Minimum WinAutomation version required: 3.1…

I want to edit a specific line of a Text File without opening it

Problem:

I want to edit a specific line of a text file without opening it

Solution:

This can be accomplished by attaching a keyboard monitor trigger to the job that when it runs it will parse text and display the desired line of the text file you want to edit, allow you to edit it, and save the information to the original file.

Discussion:

We start using a “Display Select File Dialog”, to prompt the user to select the file that needs to be altered, as well as a second dialog box that will prompt the user to enter the number of the line that should be edited.

I want to get the file path of the file currently selected while in windows explorer using a hotkey

Problem:

I want to get the file path of the file currently selected while in Windows Explorer using a hotkey

Solution:

Discussion:

When a file is selected, we use the F2 key to rename the file, this way using the CTRL+A and CTRL+C keys we copy the file’s name to the clipboard and store its value to the %Filename% variable.

It’s known, that we can get to the address bar using the CTRL+D keys. Having done that, the address is already selected, so all we need to do is copy it to the clipboard and store the value to the %Filepath% variable.

Copyright 2016 - Softomotive Ltd