I made an action which lets you input a string. For every .pdf file in a certain map which contains the string, it will append the path to the file inside a text file. At the end of the loop it will open the text file wich contains the path to all the .pdf's containing the string. For some reason it will not show the following file (which contains a hyphen):
AIH-710060 Folder Pronto.pdf
Does anyone know why it can't see that certain file?
Search function with symbols?
Re: Search function with symbols?
It would be great if you send this file and your task to me for investigation (to oleg(at)robotask.com)
Maybe you made some mistake.
Maybe you made some mistake.
Oleg Yershov
Re: Search function with symbols?
Hello Oleg,
I have sent you an e-mail with my action.
I have sent you an e-mail with my action.
Re: Search function with symbols?
Already answered
It works! Look at the video: https://youtu.be/N5YVMCcqmMM
I changed your task for my environment. See below.
I have changed folders names. Also I created the file with name AIH-710060 Folder Pronto.pdf
It works. It seems the problem somewhere else... Maybe the file has some attributes or secure parameters
Also I tested for string "AIH-710060". It works.
It works! Look at the video: https://youtu.be/N5YVMCcqmMM
I changed your task for my environment. See below.
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|444033236
Comment=STRINGLIST
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task103"
Hide=INTEGER|0
ID=INTEGER|2041522328
LogOnAsUser=INTEGER|1
Name=STRING|"Zoek PDF in Product layouts (changed)"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_INPUTBOX"
Enabled=INTEGER|-1
Name=STRING|"Input Box"
Params=FOLDER
[Actions\Action1\Params]
password=STRING|"0"
prompt=STRING|"Zoek .PDF in Product layouts"
variable=STRING|"ZOEKEN"
[Actions\Action10]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action11]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""designnummers.txt """
Params=FOLDER
[Actions\Action11\Params]
ifnonzero=STRING|"0"
program=STRING|"{tempDir}\designnummers.txt"
runas=STRING|"0"
wait=STRING|"0"
[Actions\Action2]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action2\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"7"
type=STRING|"0"
value1=STRING|"{ZOEKEN}"
[Actions\Action3]
ActionID=STRING|"A_FLOW_EXIT"
Enabled=INTEGER|-1
Name=STRING|"Exit"
[Actions\Action4]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action5]
ActionID=STRING|"A_FILE_TEXTWRITE"
Enabled=INTEGER|-1
Name=STRING|"Create text file {tempDir}\designnummers.txt"
Params=FOLDER
[Actions\Action5\Params]
encode=STRING|"0"
fileexists=STRING|"0"
filname=STRING|"{tempDir}\designnummers.txt"
linecount=STRING|"0"
suppress=STRING|"0"
[Actions\Action6]
ActionID=STRING|"A_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER
[Actions\Action6\Params]
createmode=STRING|"1"
date1=STRING|"20170103"
date2=STRING|"20170103"
destvar=STRING|"ZOEKRESULTAAT"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"D:\Temp\pdf\*.pdf"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"0"
searchkind=STRING|"0"
sort=STRING|"1"
sortby=STRING|"0"
sortorder=STRING|"1"
subdirs=STRING|"0"
timesize=STRING|"0"
WithoutPath=STRING|"0"
[Actions\Action7]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action7\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"6"
type=STRING|"0"
value1=STRING|"{ZOEKEN}"
value2=STRING|"{ZOEKRESULTAAT}"
[Actions\Action8]
ActionID=STRING|"A_FILE_TEXTWRITE"
Enabled=INTEGER|-1
Name=STRING|"Create text file {tempDir}\designnummers.txt"
Params=FOLDER
[Actions\Action8\Params]
encode=STRING|"0"
fileexists=STRING|"1"
filname=STRING|"{tempDir}\designnummers.txt"
line0=STRING|"{ZOEKRESULTAAT}"
linecount=STRING|"1"
suppress=STRING|"0"
[Actions\Action9]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_HOTKEY"
Params=FOLDER
UniqueID=INTEGER|1550354123
[Events\Event1\Params]
hotkey=STRING|"57465"
It works. It seems the problem somewhere else... Maybe the file has some attributes or secure parameters
Also I tested for string "AIH-710060". It works.
Oleg Yershov
Re: Search function with symbols?
Thanks!
Ugh, I'm so stupid.. Turns out that the pdf was actually in a subfolder, and include subfolders was unchecked
Ugh, I'm so stupid.. Turns out that the pdf was actually in a subfolder, and include subfolders was unchecked
