I am currently using the Uipath Studio Community Edition, is there a way to use a sequence from a process in another process. I cant seem to find how to do it. The process only allows me to save an existing sequence but not open another sequence.
What you need is the Invoke Workflow file. More here.
So let's assume:
you have a process with the file Main.xaml
you have a process with the file ExternalSequence.xaml
you want to use the Main.xaml and use the process from ExternalSequence.xaml in it
now in the folder of Main.xaml create a new folder called WorkFlows
move the ExternalSequence.xaml into the WorkFlows folder
add the activity Invoke Workflow file in Main.xaml
into the parameter WorkflowFileName write WorkFlows\ExternalSequence.xaml (use the file search)
run the Main.xaml now
Now the process of ExternalSequence.xaml should have been executed.
Related
Some context:
I have an Excel Macro (.xlsm) file I've created for my company, which I'm creating a batch file for that copies it from a Network folder to a local folder for each computer/user profile that clicks the batch file. What I'm looking to do is for every user that runs the batch file, I want to append their name to a hidden notepad file in the same network folder of the original macro file. That way, whenever I revise/fix/add features to the macro, I'll have a list of all the users that are using the macro file, so I can send an email letting them know of the updates.
Note: I know how to obtain the username of the user that runs the files.
I know that you can write and append to Notepad files using a batch file, but I can't find a source that verifies whether it's possible to write to an existing hidden Notepad file. I came upon this post in my search, but that's using the C# language.
So, my question(s) are:
Can a batch file write/append to a hidden notepad file?
If so, would I use the same syntax/method that you would when writing to a visible (non-hidden) file?
If not, would could I go about this feat? Could I temporarily unhide a hidden file, append to it, then rehide it? Or should I go about it using a different method?
Is this a good method, or is there a more efficient/better way to accomplish this (keeping a list of users that have the macro file)?
You could use stream redirection operator >> and system variable with login as i recall %username%. Do echo %username%>>hiddenfile. txt
I'm using visualstudio.com and Hosted build controller to build and publish my website to a server with web deploy.
After the publish I want to execute a file (powershell script or batch file).
I know that I could create a Windows Service that runs on target server and uses the FileSystemWatcher to monitor changes and run a file when it detects a file change.
But is there any better way to do this?
I assume you've customized your XAML workflow to add a new Activity (of type InvokeProcess maybe?) to handle the Publish part.
If so, you can add another Activity that will execute your custom powershell (say custom.ps1) script like so:
Add custom.ps1 to your source control
Add the folder of custom.ps1 to those used when building (Right click your build definition > Edit Build Definition... > Source Settings tab > add your folder here)
Add a new InvokeProcess Activity after the publish, that will call powershell.exe and give "custom.ps1" as the argument.
The basic idea is: deploy the .ps1 along-side your source code, and execute it after publishing is over.
Also, I strongly encourage you to take a look at Ewald Hofman's great series, especially the following:
http://www.ewaldhofman.nl/post/2010/11/09/part-14-execute-a-powershell-script.aspx
I have a tool based on .net. I need a vb script which would open this tool (.exe file) and then select 3 radio buttons, click on a button to browse a xml file stored in same folder and then click on invoke button. Is this possible? I am a complete fresher and just have this idea in mind for an automation. This is required as I have to perform the same steps daily.
I could find this code:
CreateObject("WScript.Shell").Run("""C:\Users\abc\Desktop\folder\Tool.exe""")
Which is doing my task to open the .exe file perfectly. Can someone help/guide me in achieving the further steps?
You might be better off making your tool work via the command line and having it accept arguments.
That way, you could use a .bat file to call your 'tool' passing in the arguments it needs and away you go.
These should get you started on your quest.
Creating a HelloWorld Console Application Using VisualBasic.NET
How to Parse Command Line Parameters?
What is a bat file
I need to write a shell extension for a small context menu.
unfortunately i reused the code available in open source which uses .net 4.0
now the problem is the requirement is I shud not use .NET 4.0.
Instead is there a way where in I can make an entry in the registry so that the shell extension pops out
My requirement is ....
1. The shell extension context menu should display only on .txt, .csv, .xls files.
2. Upon click of shell extension I need to start a different process, by passing the full name of the file on which we click as parameter to the process.
If you just want to add items to the context menu for certain file types, and in response launch an external application, you don't need to write a shell extension. Registry entries are enough to express this.
As the http://www.jfitz.com/tips/rclick_custom.html article you linked to says, for each file type you want to act on, you need to add a new registry key under the Shell subkey, then create a subkey called command, whose value is the name of the application to launch.
To pass the name of the file you clicked on to this external application, add "%1" to the command. Include the quotes, so that if the file's name contains spaces, it will still be treated as one token by the receiving program.
Is it possible to copy a new file created by third party application inside a directory automatically on windows?
It goes like:
Third party process 'P' creates a new temporary file 'F' inside a directory 'D'. Whenever this file F is created by the process P, I want to copy this file F into another directory D2. Additional problem is that file F gets deleted by the process P after some time. So cron job won't help.
I think, I need to trap 'new file created' event somehow, if any such thing exists.
The easiest way would be to write a program in c# which uses the FileSystemWatcher class.
See: FileSystemWatcher
Then catch the created event, and copy the file.
You could use .NET's FileSystemWatcher class to monitor a directory for new files.
If you're looking for a more native solution, check out the FindFirstChangeNotification family of Win32 functions.
Quick and Dirty: You can run a simple .bat file that contains an infinite loop. Inside the loop copy (with overwrite /y) the content of the directory, and then use the sleep command to rest for a while.
This solution is quick to develop and test.
You should create an application that constantly monitors that directory for new files, and moves them as soon as they are created.
There is no "new file created" event to monitor.