Datasource iMacro using %userprofile%

2019-08-29 10:02发布

问题:

I'm making a script on iMacro, but i don't want put my username, so i'm trying using %userprofile% %username% %homepath%, etc.

But when i run, it recognize the folder, and the location of the file dates.csv, but it says that the file was not found, and then shows a massage and the program closes.

Follow bellow the iMacro code using !DATASOURCE

SET !FOLDER_DATASOURCE C:\Users\%username%\Arquivos<SP>Extratos<SP>Bancos\WAS\
SET !DATASOURCE dates.csv
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}

Follow the error message: error message

How can i fix it?

回答1:

Try this

SET !FOLDER_DATASOURCE 
C:\Users\%username%\Arquivos<SP>Extratos<SP>Bancos\WAS\dates.csv
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}


标签: html imacros