Skip to main content
Question

I wanna get C:drive path. How can I store it in a variable?

  • December 4, 2024
  • 1 reply
  • 38 views

Forum|alt.badge.img+3

Hey, I want to get the C: drive path. How can I store it in a variable? For example, I’d like to use it to move,copy or create files. If I can store it, I’d love to use it to designate files.

 

1 reply

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • December 5, 2024

Not 100% sure what you’re asking, but try these:

Working Directory: $SystemVariablesPackage:UserWorkingDirectory$

Home Directory: $SystemVariablesPackage:UserHomeDirectory$

Downloads Directory: $SystemVariablesPackage:UserDownloadsDirectory$

Put that into a Message Box action and see if one of those system variables does what you need. Each of those system variables returns a string.