Jump to content

Inserting a sleep time between 2 commands


Recommended Posts

Hello,

I am trying to install CopyToDVD 3.0.56.

The silent command " /VERYSILENT /SP- /NORESTART" works, but WPI moves onto the next command (taskkill) before it is done, which is a problem. So, I need to add a sleep time with the CopyToDVD setup.exe command.

I have the sleep.exe file in a directory on my DVD and can call the command, but I'm not sure for the correct syntax (here bellow) to make it wait for say 30 seconds.

prog[pn]=[CopyToDVD 3.0.56']
cmd1[pn]=['%cdrom%\\Software\\VSO\\copytodvd3_setup.exe /VERYSILENT /SP- /NORESTART']
cmd2[pn]=[''%cdrom%\\Software\\VSO\\sleep.exe 30']
cmd3[pn]=['taskkill /F /IM  vsostart.exe']
rega[pn]=['%cdrom%\\Software\\VSO\\VSO.reg']
dflt[pn]=['yes']
cat[pn]=['CD/DVD Burners']
ordr[pn]=[400]
pn++

Does anyone could check and confirm???

Regards

coucou

Edited by coucou
Link to comment
Share on other sites


I use System Sleep (v2.5 1/12/92) Copyright © OzWoz 1988-92 (thanks copy&paste func). I have joint the program, I use it for PowerDVD 5 language patch bug ...

usage :

Í─────────────────────────────────────────────────────────À

║ System Sleep (v2.5 1/12/92) Copyright © OzWoz 1988-92 ║

Ë─────────────────────────────────────────────────────────¢

Usage: sleep hh:mm[:ss:hd] [/!PK]

Sleeps for the time specified then exits. If sleeping terminates normally

then an exit code of 0 is returned else 1. Switches are interpreted as:

/! - Display general program and OzWoz information.

/P - No message display

/K - No abort by keypress allowed

sleep.exe

Edited by sonic
Link to comment
Share on other sites

@ coucou Have you ever messed with AutoIt? You can create a simple script and compile it, adjusting the sleep timing to your heart's content. A simple script might take this form:

AutoItSetOption("TrayIconHide", 1)
AutoItSetOption("WinTitleMatchMode", 4)
BlockInput(0)

Sleep("35000")

The script will run for 35 seconds and do nothing while your program finishes up.

Link to comment
Share on other sites

TX all,

@blinkdt: Usually, i write scripts with AutoIt and solve that problem with sleep(xxxx).

The problem is, AutoIt Window Info report for each CopyToDVD "active window screen" except the las one. NO "Window Title", "Status Bar Text", "Visible Window Text".

Then, i opted to install CopyToDVD silently with the switches above, call sleep.exe 30 and then call Taskkil.exe to get ride of the last screen.

Does my syntax above is correct???

Regards

coucou

Link to comment
Share on other sites

@sonic: TNX, but i'm using this sleep.exe file. I checked the syntax, its correct.

sleep 30

Anyway, this problem answer not works. Because CopyToDVD last screen is hanging out and the "sleep.exe" not called until clicking on the [Exit] starter.gif.

If someone have any idea here the Trial Download

Regards

coucou

Link to comment
Share on other sites

Lucky day for you ;)

Download this compiled AutoIt script ... You must create a batch which launch the AutoIt script with start (without /wait) and after the silent install of CopyToDVD .... Just tested on my system.

Goodbye.

Source:

Opt("TrayIconHide", 1)
ProcessWait("VsoStart.exe")
ProcessClose("VsoStart.exe")

edit: directly in WPI doesn't work .

KillVsoStart.exe

Edited by sonic
Link to comment
Share on other sites

Salut Sonic,

Bien vu! well thought! :thumbup Merci.

In fact i improved it this way

Run("copytodvd3_setup.exe /VERYSILENT /SP- /NORESTART")
Opt("TrayIconHide", 1)
ProcessWait("VsoStart.exe")
ProcessClose("VsoStart.exe")

Tested on my system, working.

BTW, may you explain

Opt("TrayIconHide", 1)

Cordialement

coucou

Edited by coucou
Link to comment
Share on other sites

Opt("TrayIconHide", 1)

hide the tray icon , just more clean ...

You have test in WPI interface ? Because AutoIt script doesn't search in the same directory, si ?

Link to comment
Share on other sites

I didn't test in WPI interface yet.

Usually, i put the AutoIt file in the same directory with the called program.

What precautions do i have to take to run with WPI???

Regards

coucou

Link to comment
Share on other sites

Winrar do it very easy

SFX the 2 files copytodvd3_setup.exe and the CopyToDVD3.exe (AutoIt installer)

here the archive rar comment

;The comment below contains SFX script commands

Setup=CopyToDVD3.exe
TempMode
Silent=1
Overwrite=1

coucou

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...