Topic: Portable Finder Startup ( TheOven_Startup.cmd )  (Read 1362 times)

0 Members and 1 Guest are viewing this topic.

Portable Finder Startup ( TheOven_Startup.cmd )
« on: September 30, 2016, 12:04:05 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7012
Portable Finder Startup

Available at
\Apps\System Tools\'Portable Finder Startup'

ila_rendered

This way following your personal portable applications on your disk (mostly usb disk, flash drive),
 You can:
  * add new applications
  * create shortcuts
  * add new drivers
  * start an application at startup
  * You can automate installing Windows to different pc (see WinNTSetup http://theoven.org/index.php?topic=1236.0 )
  *  etc. (Whatever possible with a .cmd available on PE)
without rebuilding your pe  :wink: .


When you add
TheOven_Startup.cmd
file to one of your drive (most popular usb drive)
It will be executed 20 seconds after PE boots.

(20 seconds to wait all drives etc. ready)

**** Reminding ********
Plugin enabled default and probably you may forget this option available,
just put a TheOven_Startup.cmd to one of your drives with
Code: [Select]
nircmd.exe shortcut "%SystemRoot%\system32\cmd.exe" "~$folder.desktop$" "CMD Test"
If you see "CMD Test" at desktop after 20 seconds at boot, you have TheOven_Startup.cmd option available.  :wink: :cool:
**** Reminding ********




Example:
Extract ExtractTOUSB.7z to one of your drive
* ExtractTOUSB.7z (44.03 kB - downloaded 68 times.)

When you boot you will get 2 shortcuts at desktop and driveview application start

ila_rendered

ila_rendered


Idea to create such plugin
http://TheOven.org/index.php?topic=1892

Credits to laddanator "Portable Finder CMD"
http://theoven.org/index.php?topic=370.0

Ps: ExtractTOUSB.7z also attached to Plugin \Folder\ExtractTOUSB.7z



For more info see following posts

:turtle:
« Last Edit: October 06, 2016, 04:48:47 AM by Lancelot »

Re: Portable Finder Startup
« Reply #1 on: September 30, 2016, 12:04:11 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7012
reminding:

when you prepare your own
TheOven_Startup.cmd

keep in mind you are responsible from any result following your .cmd (so called batch) skills.

Here is a tip:
to do special tasks for x64 or x86 builds
(ex: execute x86 version of an application on PEx86  AND execute x64 version of an application on PEx64)
You can use following .cmd trick:

TheOven_Startup.cmd
Code: [Select]
If "%PROCESSOR_ARCHITECTURE%" == "AMD64" Call :AMD64
If "%PROCESSOR_ARCHITECTURE%" == "x86" Call :X86

nircmd.exe sysrefresh
Exit

:AMD64
ECHO AMD64
REM Example nircmd.exe shortcut "%LaddsStu%\MyApplication\blabla.exe" "~$folder.desktop$" "TEST TEST"
REM Example Start "SH" /D "%LaddsStu%\MyApplication\BlaFolder" "%LaddsStu%\MyApplication\BlaFolder\Bla_x64.exe"
pause
GOTO:eof

:X86
ECHO X86
REM Example nircmd.exe shortcut "%LaddsStu%\MyApplication\blabla_x64.exe" "~$folder.desktop$" "TEST TEST"
REM Example Start "Bla" /D "%LaddsStu%\MyApplication\BlaFolder" "%LaddsStu%\MyApplication\BlaFolder\Bla.exe"
pause
GOTO:eof
« Last Edit: October 06, 2016, 01:10:16 AM by Lancelot »

Re: Portable Finder Startup ( TheOven_Startup.cmd )
« Reply #2 on: October 05, 2016, 11:35:41 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7012
with the possibility to add dynamic shortcuts to any portable program that you add to the USB.
You can also use the good sh.exe utility developed by nikzzzz for that exactly and with additional features: Shortcut, Add registry, Autorun, autoexit :thumbsup:
Nice utility, maybe Nikzzzz could present it here  :thumbsup:
Sh.exe - programmes portables Manager: http://usbtor.ru/viewtopic.php?t=298
Google Translate:

There is a demo program for testing and understand the config dile Sh.ini and the files link *.shl (eg: "link.shl") next to each apps, cmd
copy the content of ShDemo_for_Win, DemoPrograms folder included, to the root of your USB key.
and Run sh.exe or sh_x64.exe

Here is TheOven_Startup.cmd
with sh.exe and sh_x64.exe at root of usb

Drive:\TheOven_Startup.cmd
Drive:\Sh.exe
Drive:\Sh.ini
Drive:\Sh_x64.exe
Drive:\Sh_x64.ini
Drive:\ShCache.exe
Drive:\DemoPrograms\

\DemoPrograms\ from "Sh_2016_09_15.7z -> Sh_2016_09_15\ShDemo_for_Win\DemoPrograms"

TheOven_Startup.cmd
Code: [Select]
If "%PROCESSOR_ARCHITECTURE%" == "AMD64" Call :AMD64
If "%PROCESSOR_ARCHITECTURE%" == "x86" Call :X86

GOTO:eof


:AMD64
ECHO AMD64
Start "SH" /D "%LaddsStu%" "%LaddsStu%\Sh_x64.exe"
GOTO:eof

:X86
ECHO X86
Start "SH" /D "%LaddsStu%" "%LaddsStu%\Sh.exe"
GOTO:eof



Here is TheOven_Startup.cmd
with sh.exe and sh_x64.exe at subfolder of usb

Drive:\TheOven_Startup.cmd
Drive:\DemoPrograms\1Nikzzzz_SH\Sh.exe
Drive:\DemoPrograms\1Nikzzzz_SH\Sh.ini
Drive:\DemoPrograms\1Nikzzzz_SH\Sh_x64.exe
Drive:\DemoPrograms\1Nikzzzz_SH\Sh_x64.ini
Drive:\DemoPrograms\1Nikzzzz_SH\ShCache.exe
Drive:\DemoPrograms\

\DemoPrograms\ from "Sh_2016_09_15.7z -> Sh_2016_09_15\ShDemo_for_Win\DemoPrograms"

TheOven_Startup.cmd
Code: [Select]
If "%PROCESSOR_ARCHITECTURE%" == "AMD64" Call :AMD64
If "%PROCESSOR_ARCHITECTURE%" == "x86" Call :X86

Exit

:AMD64
ECHO AMD64
Start "SH" /D "%LaddsStu%\DemoPrograms\1Nikzzzz_SH" "%LaddsStu%\DemoPrograms\1Nikzzzz_SH\Sh_x64.exe"
GOTO:eof

:X86
ECHO X86
Start "SH" /D "%LaddsStu%\DemoPrograms\1Nikzzzz_SH" "%LaddsStu%\DemoPrograms\1Nikzzzz_SH\Sh.exe"
GOTO:eof


Testing on Gena, adding any \DemoPrograms\ ,
 sh.exe cause Gena taskbar unresponsive,
  probably Nikzzzz would improve in future.

Attached Nikzzzz sh Sh_2016_09_15.7z
« Last Edit: October 06, 2016, 01:10:37 AM by Lancelot »

Re: Portable Finder Startup ( TheOven_Startup.cmd )
« Reply #3 on: February 16, 2017, 09:32:19 PM »

pstein

  • Jr. Chef
  • **
  • Date Registered: Jan 2017
  • Posts: 26
Hmm, it does not become clear on how to use this feature.

In the corresponding Winbuilder section it is written:

"Add 'TheOven_Startup.cmd' to one of your drive"

Does that mean I have to generate at first the ISO, then open the ISO file (we.g. with UltraISO) and add the mentioned file manually?

Is there a way to add this file BEFORE generating (so that it is automatically available in ISO target file)?
if yes: Where exactly (in which subfolder) do I have to put the text file 'TheOven_Startup.cmd' ?

In the example script in WinBuilder nircmd.exe is used. Is it already available or do  I have to install it additionally?

Can I put "regedit" commands into the file as well?

Peter

Re: Portable Finder Startup ( TheOven_Startup.cmd )
« Reply #4 on: February 16, 2017, 09:37:11 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7012
In the corresponding Winbuilder section it is written:

"Add 'TheOven_Startup.cmd' to one of your drive"
I do not know such a winbuilder section .

Sorry, since Winbuilder closed source software,
 We can not add or remove something WinBuilder GUI .

 :horse: :horse: :horse:
« Last Edit: February 16, 2017, 09:37:23 PM by Lancelot »

Re: Portable Finder Startup ( TheOven_Startup.cmd )
« Reply #5 on: February 16, 2017, 10:20:34 PM »

pstein

  • Jr. Chef
  • **
  • Date Registered: Jan 2017
  • Posts: 26
How would call this

ila_rendered

?

Re: Portable Finder Startup ( TheOven_Startup.cmd )
« Reply #6 on: February 16, 2017, 10:22:14 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7012
How would call this

It is written on plugin

Re: Portable Finder Startup ( TheOven_Startup.cmd )
« Reply #7 on: February 16, 2017, 10:32:30 PM »

pstein

  • Jr. Chef
  • **
  • Date Registered: Jan 2017
  • Posts: 26
Ok, now lets call it plugin.
But my initial questions are still unanswered

Re: Portable Finder Startup ( TheOven_Startup.cmd )
« Reply #8 on: February 16, 2017, 10:41:03 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7012
But my initial questions are still unanswered
your initial questions answered on topic post.

and even at FAQ & Tutorials http://theoven.org/index.php?board=35.0


*
From topics and posts you create,
 obviously you like to ask questions before practicing.
  and you like not to read all and follow provided information,
   instead you like to post.

With such behaviour,
 I advice Practice with projects at least 2 weeks,
   you will get your answers of your questions yourself.

 

Powered by EzPortal