Get file/application path on a different device

Hello guys. I am developing a robot that needs to use excel files in a specified folder with a fixed name (e.g. Invoice_no). I also need to use a desktop application to input the data stored in these excel files.

The problem is the device I used to develop the robot is not the same device for deploying the robot. May I know how can instruct the robot to get the file path/ application path when it is deployed in a new device?

You need to place the file in a shared folder to avoid the dependency of running machine

Both the machines should have access to shared folder. This is the common practice

OR

if Shared Folder is not an option - You need to modify the code in such a way that it is downloaded from email every time. Whenever you want to process - Send email to BOT account. BOT should check for the email first and download to local and continue processing

Thx for your reply! I think I can try to work on the files in this way but what about the desktop application? How can I indicate the robot?

Hello @Komom ,

  1. You can store file/application path in config file
  2. You can store file/application path in Orchestrator Asset.
  3. If file is under project directory (ex. inside Data\Input folder) , then use below code to get current directory of the machine.
Environment.CurrentDirectory + "\Data\Input"

above expression will focus on Input folder in any machine

For application path I will suggest to use Asset. (Hope application is installed on machine)

Running machine should also have the desktop application. Credentials could be shared via Orchestrator assets. Without installing in the robot running machine - the code will fail. Development and Robot machine infrastructure should be matching for the process to run without fail. I don’t think there is any alternative for this as you are using Desktop application and not the web application

@Komom,

You should be putting this application path in Config file and change the path as per your bot machine file path.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.