Raw Commands Question

I have set up a button with the following Raw comnmands:

Go /D VIEW=List
Select abc123.sle PATTERN
Rename PATTERN="." TO Secure002.sle TYPE=files
Select NONE
Go /mydocuments VIEW=Power

This works perfectly, however, when I add the following:

o /D VIEW=List OPENINRIGHT=vert
Set FOCUS=Dest
Select abc123.sle PATTERN
Rename PATTERN="." TO Secure002.sle TYPE=files
Select NONE
Go /mydocuments VIEW=Power

The first Select, Rename, second Select and last Go stop working. Any ideas please?

Thank you for your help.

Neil

I'm having trouble understanding the very beginning of either button code where you have this:

Go /D

On my machine that sends Opus to C:\D\

At any rate assuming yours goes where you want, both of your button examples work on my machine. I've ran the one giving you trouble about 10 times and it worked every time so I tend to assume it's a timing issue on your setup. There are different ways you can address those kinds of problems, you can split the button into a 3 button button where a left click does part of the job and a right click does the rest. Or you could try something like this next (this is going into new territory for me with Opus but it seems to work).

  1. Change your button function type from STANDARD FUNCTION to MS-DOS BATCH FUNCTION and then change your button code to the following:

// @runmode hide Go /D VIEW=List OPENINRIGHT=vert Set FOCUS=Dest @runbatch ping.exe -n 2 127.0.0.1 >nul @norunbatch Select abc123.sle PATTERN Rename PATTERN="*.*" TO Secure002.sle TYPE=files Select NONE Go /mydocuments VIEW=Power

What that does on my machine, is it inserts an approximate 1 second delay just before the Opus command to select abc123.sle which may be the point of failure in your machine (you should see a 1 second "DOS box" flash during the delay). You may have to move the delay around or even add an additional delay to resolve your problem but once you get it working you can eliminate the DOS box flash by removing the // before @runmode hide on the first line.

[quote="JohnZeman"]I'm having trouble understanding the very beginning of either button code where you have this:

Go /D

On my machine that sends Opus to C:\D[/quote]

It would be an alias called D :slight_smile:

If you just want to rename a particular file to something else you can do it without any selection:

Rename FROM="abc123.sle" TO="Secure002.sle" TYPE=files

Ah. I've never had a reason to set up an alias in Opus, so that `splains why I waz confuzzled. :bulb: [/quote]

John,

Thank you for your response. I will give this a try tomorrow.

Kind Regards

Neil

Hello,

I have entered the following Raw/batch commands into my button text:

//@runmode hide
Go /D VIEW=List OPENINDUAL=vert
Set FOCUS=Dest
@runbatch
ping.exe -n 10 127.0.0.1 >nul
@norunbatch
Select TYPE=files "abc123.sle"

The button function was converted to MS DOC batch.

The two listers are opened and the focus is set to the D drive. The MS DOS window opens. While the MS DOS window is open, the folder tree for the D drive expands.

Once the MS DOS window closes, the command Select TYPE=files "abc123.sle" does not select the file abc123.sle (this file exists and is in the root of the D drive).

If I enter the following commands:

/@runmode hide
Go /D VIEW=List OPENINDUAL=vert
Set FOCUS=Dest
@runbatch
ping.exe -n 10 127.0.0.1 >nul
@norunbatch
Select TYPE=files "abc123.sle"
@runbatch
ping.exe -n 10 127.0.0.1 >nul
@norunbatch
Select TYPE=files "abc123.sle"

The file abc123.sle is still not selected.

If, after all of the above commands have executed once, I select my button again, so the D drive opens in a dual vertical lister again, the file abc123.sle is selected.

It would appear that when I run the commands in my button once, no commands after the Set FOCUS=Dest are run.

Any ideas please?

Thank you for your help.

Neil

Hello,

Just to let you know that the following commands work perfectly every time:

Go /D VIEW=List
Set FOCUS=Dest
Select TYPE=files "abc123.sle"
Rename FROM="abc123.sle" TO="Secure002.sle" TYPE=files
Set VIEW=Power

It is Go /D VIEW=ListOPENINRIGHT=vert or OPENINDUAL=vert that causes the problem.

Kind Regards

Neil

I'm afraid I can't offer any other suggestions since I cannot duplicate your problem. It works just as you show it, every time for me.