PSL in WinPE

Discussion in 'Paragon Drive Backup Product Line' started by JasonPTI, Aug 10, 2011.

Thread Status:
Not open for further replies.
  1. JasonPTI

    JasonPTI Registered Member

    Aug 10, 2011
    I need to find a way to eject the CD/DVD drive when a script completes and then shutdown the computer.

    Here is a breakdown of what I want to accomplish:

    1. Insert WinPE CD and a USB(with image on it) into a computer and reboot.

    2. WinPE loads and Auto Runs a script that images the computer from the .pbf on the USB drive.

    3. When the imaging completes the CD tray ejects and the computer shutsdown.


    Here are the issues that I run into:

    1. Depending on the amount of drives in different computers the USB drive will have a different drive letter. Need a way to assign the USB drive to a specific letter on WinPE startup.

    2. I don't see a command in PSL to eject the cd tray. Is there a way to call a different file or .exe from within PSL? I'm thinking AutoIT or something may work here.

    3. What is the proper script line for shutting down the computer and where would I put that in my script.


    Here is my script that Auto Runs on WinPE load:

    // This file was automatically generated by {VENDOR_NAME} script generator
    // Use {VENDOR_NAME} Script Interpretator to run this file
    // Time of creation: Tue Aug 09 16:50:12 2011
    // Settings block
    	surfacetest off
    	verify off
    	copyonetoone off
    	hddrawprocess off
    	allow64kcluster off
    	donothidetarget on
    	copyinsteadofmove off
    	bigdrives off
    	compressionlevel 2
    	sidafterdisk off
    	sidafterpartition off
    	defaultsidchanger on
    	nodellabel off
    	timeshift 0
    	oemcodepage 850
    	timezone 20
    	langnumber 17
    	slavecfg off
    	notforslave off
    	enablerestart on
    	enablevirtualdb on
    	autoconverttofat32 on
    	sidparams ""
    	bootcdiso ".\..\ISO\bootcd.iso"
    	hotbackup lockimpossible
    	tempdrive C
    	vss2hbswitch on
    	vssattempts 3
    	vsstimeout 120
    // Turn off confirmation
    confirm off
    // Restore
    img = "E:/New folder/WXPV3_1.pbf"
    select disk 0
    delete all
    select image all
    // Check for errors
    call check_error
    // Apply all scheduled operations
    apply all
    // Check for errors
    call check_error
    // Exiting
    // exit(0)
    // Function for checking error
    	if (errorcode(1) != 0)
    		print "Some error occured: "
    		print ""
    		print "Exiting"
    		print ""
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.