Windows Automation And Macro Recorder How To Use Variables In File Paths - Presentation Transcript
How to use variables in file paths http://winautomation.com/kb/how-use-variables-file-paths
Home Features Download Purchase Support Company
How to use variables in file paths
Latest Knowledge Base Articles
Backslash Escape character File Path Hints and Tips Percent Variable
Manage the delays between
If you have tried entering a variable in a path: keystrokes
How do I import the jobs that I
created in WinAutomation v2?
Represent the <Blank> and
<Space> in an expression
How To - Automate Status
Updating on Twitter
How To - Implement Autologin
How To - Delete the first row
from Text file
Notify me via email when a
scheduled job generates an error
Speed up the image recognition
process
Run Executable from Network
Share
Send Keys - Use Modifiers
How to use variables in file paths
Monitor Network Folders
View All Articles
you may have come across the following error: "File to copy not found", even though the
variable contains the correct filename and extension.
In WinAutomation the percent (%) char is a delimiter for expressions (or variables) but the %
combination equals to the literal % char. If, for example you want to display the message
“50% of your disk is used”, you should write: “50% of your disk is used”. In order to have a
backslash and a % immediately after it (e.g. in a file path), you have to use the combination
%.
So, in this example:
C:My Files%FileToCopy% will not work while
C:My Files%FileToCopy% will work normally.
The reason for this behavior is that the backslash character is designed to behave like an
escape character in case that you need to write the actual percent (%) character.
Average:
Your rating: None Average: 5 (3 votes)
1 of 2 6/21/2009 9:12 PM
0 comments
Post a comment