PortableApps.com Platform and Suite 1.6 have been released.
scripting if/then/elseSubmitted by Allan Kirk on April 7, 2009 - 5:07pm
Hi If @computername@=XXX Then Sync MyJob Then I could load the script from the autorun.inf, and it would only run on my own pc. - Kirk ( categories: )
|


.
Make a batch file!
@echo offif %computername%==PUT_HERE_YOUR_COMPUTER_NAME (
start PortableApps\Toucan\Toucan.exe SOME_PARAMETERS_HERE
)
I'm brazilian, my english isn't good. Thanks.
Another scripting question
Is it possible to use Toucan to create a script that will open and run operations for a series of registry/system cleaners on my portable?
Basically I want it to:
1> Open CCleaner, scan and run cleaner. Close CCleaner.
2> Open and Run clean with CleanAfterMe. Close CleanAfterMe.
3> Open and Run clean with Disk Cleaner. Close Disk Cleaner.
4> Open Regseeker and do Autoclean. Close Regseeker.
5> Open Regpair, scan and fixerrors. Close Regpair.
6> Run JKDefrag and perform Defragment and optimize on all connected drives (Portable hard drive and local hard drive). Close JKDefrag.
All these apps are on my portable hard drive installed into the PortableApps folder. I think I could figure how to make a scrip in Toucan to open them as it would be "Execute X:\PortbaleApps\App\App.exe" but I'm guessing this would only just open the app. I want it to actually run the operations.
If this cant be done completely within Toucan would it be possible to create a regular script and Execute that script within Toucan? if so how does one create one of those .bat scripts? Also would it need to be converted to an exe to be recognized by Toucan's execute function?
Thanks in advance for any help
Live to learn. Learn to live. - JWSII
Yes
it would only run them I am afraid, however I suspect many of those prorams have command line options you could use to run them automatically, I shall try and get support for command line parameter passing added into the next pre-release.
And you should be able to run a bat through the Execute command without any problems.
EDIT: Actually you can already pass parameters, for example:
Execute "notepad C:\test.txt"
Works just fine, the only problems you might have are is you need to pass quotes to the command line, I need to think about a better solution for that though
'...and do the other things, not because they are easy, but because they are hard...' JFK
I
have been thinking about this, I should have support for this added in the next pre-release, I will add more information once I have got it sorted.
'...and do the other things, not because they are easy, but because they are hard...' JFK
Thank you Steve :-)
Thank you Steve
Live to learn. Learn to live. - JWSII