Open file with...

Discuss RoboTask here
Post Reply
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Open file with...

Post by marcolobaido »

Hi, I need to open a pdf file using a graphometric signature software. Is there a way to open the file directly with a specified program?
Oleg
Site Admin
Posts: 3004
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Open file with...

Post by Oleg »

Yes of course.
Use Run program action
As a rule the command line is:
program_name document_name

Perhaps you need to clarify this in the documentation of application.
Oleg Yershov
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Open file with...

Post by marcolobaido »

Sorry but I didn't understand how to do it. I specified:
- Document file name
- Program's path in section "Parameters"
- And file's folder path in section "Default folder"
but it doesn't work.

Code: Select all

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task40"
Hide=INTEGER|0
ID=INTEGER|-1901849397
LogOnAsUser=INTEGER|1
Name=STRING|"Run ""Attestato Ignazio Cammisa.pdf C:\Program Files (x86)\FirmaCerta\fcsign.exe""..."
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER

[Actions\Action1]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""Attestato Ignazio Cammisa C:\Program Files (x86)\FirmaCerta\fcsign.exe"""
Params=FOLDER

[Actions\Action1\Params]
ifnonzero=STRING|"0"
params=STRING|"C:\Program Files (x86)\FirmaCerta\fcsign.exe"
program=STRING|"Attestato Ignazio Cammisa"
runas=STRING|"0"
wait=STRING|"0"
workdir=STRING|"C:\Users\Chiara\Dropbox\Cartsan\Corsi\Primo Soccorso\2017_456\Attestati"
Oleg
Site Admin
Posts: 3004
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Open file with...

Post by Oleg »

Look at the screenshot below:
run program.png
run program.png (36.04 KiB) Viewed 24020 times
Also look at my examples below

Open PDF document in FoxIt reader:

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
ExternalName=STRING|"Task285"
Hide=INTEGER|0
ID=INTEGER|1482720006
LogOnAsUser=INTEGER|1
Name=STRING|"Open PDF in FoxIt reader"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER

[Actions\Action1]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""FoxitReader.exe RoboTask.pdf"""
Params=FOLDER

[Actions\Action1\Params]
ifnonzero=STRING|"0"
params=STRING|"RoboTask.pdf"
program=STRING|"D:\programs\FOXIT SOFTWARE\FOXIT READER\FoxitReader.exe"
runas=STRING|"0"
wait=STRING|"0"
workdir=STRING|"E:\upload\rt\6.9"
Open the same PDF file in Adobe Acrobat Pro

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
ExternalName=STRING|"Task286"
Hide=INTEGER|0
ID=INTEGER|1316890082
LogOnAsUser=INTEGER|1
Name=STRING|"Open PDF in Adobe Acrobat"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER

[Actions\Action1]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""Acrobat.exe RoboTask.pdf"""
Params=FOLDER

[Actions\Action1\Params]
ifnonzero=STRING|"0"
params=STRING|"RoboTask.pdf"
program=STRING|"D:\programs\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe"
runas=STRING|"0"
wait=STRING|"0"
workdir=STRING|"E:\upload\rt\6.9"
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Oleg Yershov
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Open file with...

Post by marcolobaido »

Thank you!
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Open file with...

Post by marcolobaido »

The task works perfectly with other programs but not with the one I need. I attach the error log, do you think that I can solve the problem?

EurekaLog 6.1.04

Application:
--------------------------------------------------------------------------
1.1 Start Date : Thu, 17 Aug 2017 11:09:24 +0200
1.2 Name/Description: fcsign.exe
1.3 Version Number : 4.2.9.5
1.4 Parameters : verbale_BONGIORNO_Francesco paolo_20170211_448.pdf
1.5 Compilation Date: Tue, 25 Jul 2017 10:47:33 +0200
1.6 Up Time : 0 second

Exception:
----------------------------------------------------------------------------
2.1 Date : Thu, 17 Aug 2017 11:09:25 +0200
2.2 Address : 0040B43D
2.3 Module Name : fcsign.exe
2.4 Module Version: 4.2.9.5
2.5 Type : EConvertError
2.6 Message : 'paolo_20170211_448.pdf' is not a valid integer value.
2.7 ID : 1926
2.8 Count : 1
2.9 Status : New
2.10 Note :

User:
-----------------------------------------------------------------
3.1 ID : Chiara
3.2 Name :
3.3 Email :
3.4 Company :
3.5 Privileges: SeIncreaseQuotaPrivilege - OFF
SeSecurityPrivilege - OFF
SeTakeOwnershipPrivilege - OFF
SeLoadDriverPrivilege - OFF
SeSystemProfilePrivilege - OFF
SeSystemtimePrivilege - OFF
SeProfileSingleProcessPrivilege - OFF
SeIncreaseBasePriorityPrivilege - OFF
SeCreatePagefilePrivilege - OFF
SeBackupPrivilege - OFF
SeRestorePrivilege - OFF
SeShutdownPrivilege - OFF
SeDebugPrivilege - OFF
SeSystemEnvironmentPrivilege - OFF
SeChangeNotifyPrivilege - ON
SeRemoteShutdownPrivilege - OFF
SeUndockPrivilege - OFF
SeManageVolumePrivilege - OFF
SeImpersonatePrivilege - ON
SeCreateGlobalPrivilege - ON
SeIncreaseWorkingSetPrivilege - OFF
SeTimeZonePrivilege - OFF
SeCreateSymbolicLinkPrivilege - OFF
SeDelegateSessionUserImpersonatePrivilege - OFF

Active Controls:
---------------------------------------
4.1 Form Class : TfRoboTask
4.2 Form Text : RoboTask 6.9.0.925
4.3 Control Class:
4.4 Control Text :

Computer:
-----------------------------------------------------------------------------------
5.1 Name : SERVER
5.2 Total Memory : 16267 Mb
5.3 Free Memory : 13009 Mb
5.4 Total Disk : 475,82 Gb
5.5 Free Disk : 321,49 Gb
5.6 System Up Time: 7 days, 15 hours, 2 minutes, 2 seconds
5.7 Processor : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
5.8 Display Mode : 1920 x 1080, 32 bit
5.9 Display DPI : 120
5.10 Video Card : Intel(R) HD Graphics 620 (driver 21.20.16.4550 - RAM 1024 MB)
5.11 Printer : Microsoft Print To PDF (driver 10.0.15063.138)

Operating System:
-----------------------------------------------
6.1 Type : Microsoft Windows 10.0 (64 bit)
6.2 Build # : 15063
6.3 Update :
6.4 Language: Italian
6.5 Charset : 0

Network:
---------------------------------------------------------------------
7.1 IP Address: 000.000.000.000 - 192.168.001.004 - 000.000.000.000
7.2 Submask : 000.000.000.000 - 255.255.255.000 - 000.000.000.000
7.3 Gateway : 000.000.000.000 - 192.168.001.001 - 000.000.000.000
7.4 DNS 1 : 000.000.000.000 - 192.168.001.001 - 000.000.000.000
7.5 DNS 2 : 000.000.000.000 - 000.000.000.000 - 000.000.000.000
7.6 DHCP : ON - ON - ON

Call Stack Information:
--------------------------------------------------------------------
|Address |Module |Unit |Class|Procedure/Method |Line |
--------------------------------------------------------------------
|*Exception Thread: ID=11656; Priority=0; Class=; [Main] |
|------------------------------------------------------------------|
|0040B43D|fcsign.exe | | | | |
|00F8C94D|fcsign.exe |fcsign.dpr| | |175[27]|
|74828742|KERNEL32.DLL| | |BaseThreadInitThunk| |
--------------------------------------------------------------------

Modules Information:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|Handle |Name |Description |Version |Size |Modified |Path |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|00400000|fcsign.exe | |4.2.9.5 |9433176 |2017-07-25 11:39:14|C:\Program Files (x86)\FirmaCerta |
|46480000|security.dll |Security Support Provider Interface |10.0.15063.0 |4608 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|559B0000|windowscodecs.dll |Microsoft Windows Codecs Library |10.0.15063.483 |1518088 |2017-07-11 02:31:54|C:\WINDOWS\system32 |
|564D0000|dssenh.dll |Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider|10.0.15063.0 |132840 |2017-03-18 22:58:52|C:\WINDOWS\system32 |
|56710000|LOGONCLI.DLL |Net Logon Client DLL |10.0.15063.0 |186520 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|567C0000|qwave.dll |Windows NT |10.0.15063.0 |239104 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|56B30000|WMICLNT.dll |WMI Client API |10.0.15063.0 |38912 |2017-03-18 22:58:52|C:\WINDOWS\SYSTEM32 |
|56B40000|TRAFFIC.dll |Microsoft Traffic Control 1.0 DLL |10.0.15063.0 |35328 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|56B50000|FontSub.dll |Font Subsetting DLL |10.0.15063.0 |96768 |2017-03-18 22:59:00|C:\WINDOWS\SYSTEM32 |
|56B70000|MSVFW32.dll |Libreria Microsoft Video for Windows |10.0.15063.0 |124416 |2017-03-18 22:58:46|C:\WINDOWS\SYSTEM32 |
|5E780000|MSACM32.dll |Filtro audio ACM Microsoft |10.0.15063.502 |90464 |2017-07-28 06:36:20|C:\WINDOWS\SYSTEM32 |
|5EC30000|olepro32.dll |OLEPRO32.DLL |10.0.15063.447 |89088 |2017-07-11 02:31:48|C:\WINDOWS\SYSTEM32 |
|63B30000|avifil32.dll |File libreria di supporto per Microsoft AVI |10.0.15063.0 |98304 |2017-03-18 22:58:46|C:\WINDOWS\SYSTEM32 |
|70310000|SHFolder.dll |Shell Folder Service |10.0.15063.0 |9216 |2017-03-18 22:58:58|C:\WINDOWS\SYSTEM32 |
|70E00000|SECUR32.DLL |Security Support Provider Interface |10.0.15063.0 |23040 |2017-03-18 22:58:52|C:\WINDOWS\SYSTEM32 |
|71180000|wininet.dll |Internet Extensions per Win32 |11.0.15063.483 |2859520 |2017-07-11 02:31:54|C:\WINDOWS\SYSTEM32 |
|718E0000|mscms.dll |DLL sistema di corrispondenza colori Microsoft |10.0.15063.0 |524288 |2017-03-18 22:58:56|C:\WINDOWS\SYSTEM32 |
|71F40000|comctl32.dll |Libreria di controlli per le azioni dell'utente |6.10.15063.0 |2139040 |2017-03-18 22:59:00|C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.15063.483_none_6dad63fefc436da8|
|72150000|apphelp.dll |Libreria client compatibilità applicazione |10.0.15063.447 |584192 |2017-07-11 02:31:48|C:\WINDOWS\SYSTEM32 |
|722C0000|rsaenh.dll |Microsoft Enhanced Cryptographic Provider |10.0.15063.0 |183448 |2017-03-18 22:58:48|C:\WINDOWS\system32 |
|722F0000|CRYPTSP.dll |Cryptographic Service Provider API |10.0.15063.0 |67760 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|72310000|propsys.dll |Sistema di proprietà Microsoft |7.0.15063.0 |1465360 |2017-03-18 22:58:52|C:\WINDOWS\system32 |
|728A0000|winscard.dll |API di Microsoft Smart Card |10.0.15063.0 |172032 |2017-03-18 22:58:44|C:\WINDOWS\SYSTEM32 |
|72980000|winmmbase.dll |Base Multimedia Extension API DLL |10.0.15063.0 |129736 |2017-03-18 22:58:46|C:\WINDOWS\SYSTEM32 |
|729B0000|WINMM.dll |DLL API MCI |10.0.15063.0 |135440 |2017-03-18 22:58:46|C:\WINDOWS\SYSTEM32 |
|72A40000|gdiplus.dll |Microsoft GDI+ |10.0.15063.483 |1448960 |2017-07-11 02:31:42|C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.15063.483_none_9e9856e456d5e776 |
|72BB0000|mswsock.dll |Service Provider Microsoft Windows Sockets 2.0 |10.0.15063.0 |305568 |2017-03-18 22:58:46|C:\WINDOWS\SYSTEM32 |
|72DA0000|wsock32.dll |Windows Socket 32-Bit DLL |10.0.15063.0 |16384 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|72E90000|USERENV.dll |Userenv |10.0.15063.0 |133320 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|72EC0000|dwmapi.dll |API di Gestione finestre desktop Microsoft |10.0.15063.483 |125344 |2017-07-11 02:31:42|C:\WINDOWS\system32 |
|72FC0000|uxtheme.dll |Libreria UxTheme di Microsoft |10.0.15063.0 |474112 |2017-03-18 22:58:58|C:\WINDOWS\system32 |
|73070000|msimg32.dll |GDIEXT Client DLL |10.0.15063.0 |7168 |2017-03-18 22:59:00|C:\WINDOWS\SYSTEM32 |
|735E0000|DEVOBJ.dll |Device Information Set DLL |10.0.15063.0 |131784 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|736A0000|iphlpapi.dll |API helper IP |10.0.15063.0 |187544 |2017-03-18 22:58:46|C:\WINDOWS\SYSTEM32 |
|73DE0000|bcrypt.dll |Libreria primitive di crittografia di Windows |10.0.15063.0 |93536 |2017-03-18 22:58:48|C:\WINDOWS\SYSTEM32 |
|73E60000|winspool.drv |Driver dello spooler di Windows |10.0.15063.138 |429568 |2017-07-11 02:31:50|C:\WINDOWS\SYSTEM32 |
|73ED0000|version.dll |Version Checking and File Installation Libraries |10.0.15063.0 |27424 |2017-03-18 22:59:00|C:\WINDOWS\SYSTEM32 |
|73EE0000|NETUTILS.DLL |Net Win32 API Helpers DLL |10.0.15063.0 |37256 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|73FD0000|SetupApi.dll |API dell'installazione di Windows |10.0.15063.0 |4330920 |2017-03-18 22:58:40|C:\WINDOWS\System32 |
|74520000|netapi32.dll |Net Win32 API DLL |10.0.15063.0 |68776 |2017-03-18 22:58:50|C:\WINDOWS\SYSTEM32 |
|74640000|CRYPTBASE.dll |Base cryptographic API DLL |10.0.15063.0 |31592 |2017-03-18 22:58:46|C:\WINDOWS\System32 |
|74650000|SspiCli.dll |Security Support Provider Interface |10.0.15063.0 |124544 |2017-03-18 22:58:46|C:\WINDOWS\System32 |
|74670000|kernel.appcore.dll |AppModel API Host |10.0.15063.0 |47096 |2017-03-18 22:58:48|C:\WINDOWS\System32 |
|74690000|powrprof.dll |DLL helper del profilo di alimentazione |10.0.15063.0 |276400 |2017-03-18 22:58:50|C:\WINDOWS\System32 |
|746E0000|RPCRT4.dll |Runtime RPC (Remote Procedure Call) |10.0.15063.447 |787712 |2017-07-11 02:31:48|C:\WINDOWS\System32 |
|747A0000|WS2_32.dll |DLL a 32 bit di Windows Socket 2.0 |10.0.15063.0 |415864 |2017-03-18 22:58:46|C:\WINDOWS\System32 |
|74810000|KERNEL32.DLL |DLL client di Windows NT BASE API |10.0.15063.296 |599576 |2017-07-11 02:31:48|C:\WINDOWS\System32 |
|748E0000|ole32.dll |Microsoft OLE per Windows |10.0.15063.502 |988168 |2017-07-28 06:35:58|C:\WINDOWS\System32 |
|749E0000|MSCTF.dll |MSCTF Server DLL |10.0.15063.332 |1333136 |2017-07-11 02:31:42|C:\WINDOWS\System32 |
|74B30000|USER32.dll |Multi-User Windows USER API Client DLL |10.0.15063.0 |1292872 |2017-03-18 22:59:02|C:\WINDOWS\System32 |
|74E30000|cfgmgr32.dll |Configuration Manager DLL |10.0.15063.0 |226816 |2017-03-18 22:58:50|C:\WINDOWS\System32 |
|74E70000|ucrtbase.dll |Microsoft® C Runtime Library |10.0.15063.447 |1150784 |2017-07-11 02:31:50|C:\WINDOWS\System32 |
|74F90000|PSAPI.DLL |Process Status Helper |10.0.15063.0 |17112 |2017-03-18 22:58:40|C:\WINDOWS\System32 |
|74FA0000|msvcp_win.dll |Microsoft® C Runtime Library |10.0.15063.0 |491232 |2017-03-18 22:58:46|C:\WINDOWS\System32 |
|75020000|GDI32.dll |GDI Client DLL |10.0.15063.483 |129184 |2017-07-11 02:31:54|C:\WINDOWS\System32 |
|75050000|SHELL32.dll |DLL comune della shell di Windows |10.0.15063.502 |20373408|2017-07-28 06:36:22|C:\WINDOWS\System32 |
|763A0000|SHLWAPI.dll |Libreria leggera di utilità per la shell |10.0.15063.502 |277432 |2017-07-28 06:35:34|C:\WINDOWS\System32 |
|763F0000|clbcatq.dll |COM+ Configuration Catalog |2001.12.10941.16384|521728 |2017-03-18 22:58:42|C:\WINDOWS\System32 |
|764E0000|msvcrt.dll |Windows NT CRT DLL |7.0.15063.0 |769608 |2017-03-18 22:58:46|C:\WINDOWS\System32 |
|765A0000|comdlg32.dll |DLL delle finestre di dialogo comuni |10.0.15063.502 |952832 |2017-07-28 06:12:02|C:\WINDOWS\System32 |
|76700000|sechost.dll |Host for SCM/SDDL/LSA Lookup APIs |10.0.15063.0 |257792 |2017-03-18 22:58:46|C:\WINDOWS\System32 |
|76750000|IMM32.DLL |Multi-User Windows IMM32 API Client DLL |10.0.15063.0 |143672 |2017-03-18 22:59:02|C:\WINDOWS\System32 |
|76810000|combase.dll |Microsoft COM per Windows |10.0.15063.447 |2330520 |2017-07-11 02:31:42|C:\WINDOWS\System32 |
|76AB0000|bcryptPrimitives.dll|Windows Cryptographic Primitives Library |10.0.15063.138 |354360 |2017-07-11 02:31:42|C:\WINDOWS\System32 |
|76B10000|windows.storage.dll |API archiviazione Microsoft WinRT |10.0.15063.502 |5820984 |2017-07-28 06:40:20|C:\WINDOWS\System32 |
|770C0000|profapi.dll |User Profile Basic API |10.0.15063.0 |59456 |2017-03-18 22:58:46|C:\WINDOWS\System32 |
|770D0000|shcore.dll |SHCORE |10.0.15063.0 |569264 |2017-03-18 22:58:56|C:\WINDOWS\System32 |
|77160000|KERNELBASE.dll |DLL client di Windows NT BASE API |10.0.15063.502 |1839872 |2017-07-28 06:48:22|C:\WINDOWS\System32 |
|77330000|win32u.dll |Win32u |10.0.15063.0 |81176 |2017-03-18 22:59:00|C:\WINDOWS\System32 |
|77350000|crypt32.dll |Crypto API32 |10.0.15063.296 |1557288 |2017-07-11 02:31:42|C:\WINDOWS\System32 |
|774D0000|advapi32.dll |API Windows 32 Base avanzato |10.0.15063.0 |480920 |2017-03-18 22:58:40|C:\WINDOWS\System32 |
|77550000|MSASN1.dll |ASN.1 Runtime APIs |10.0.15063.447 |49656 |2017-07-11 02:31:42|C:\WINDOWS\System32 |
|77560000|oleaut32.dll |OLEAUT32.DLL |10.0.15063.332 |606960 |2017-07-11 02:31:42|C:\WINDOWS\System32 |
|77600000|gdi32full.dll |GDI Client DLL |10.0.15063.413 |1409048 |2017-07-11 02:31:42|C:\WINDOWS\System32 |
|77760000|ntdll.dll |DLL del livello NT |10.0.15063.447 |1620368 |2017-07-11 02:31:50|C:\WINDOWS\SYSTEM32 |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Oleg
Site Admin
Posts: 3004
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Open file with...

Post by Oleg »

PDF name contains the space: verbale_BONGIORNO_Francesco paolo_20170211_448.pdf

So you have to use quotes

The command line will be such:
<full_path_if_necessary>\fcsign.exe "verbale_BONGIORNO_Francesco paolo_20170211_448.pdf"

By the way you can use quotes with any file name. System should process it correctly.
Oleg Yershov
Post Reply