Topic: Another newbie question - creating shortcuts on desktop  (Read 1240 times)

Another newbie question - creating shortcuts on desktop
« on: December 11, 2014, 11:53:56 AM »

brundleflyguy

  • Jr. Chef
  • **
  • Date Registered: Dec 2012
  • Posts: 23
Hello All,
  How do I create my own shortcut on the Win7PE SE desktop?  I'm trying to run a batch file that will:
1)map a network drive
2)Switch to that drive and run a batch file from there.

I can write the batch files without a problem, but I'd like to put them on desktop so I can access them easily.

Actually, it would be even cooler if I could automate them to run on Windows startup - as if they were in the startup folder in the Start Menu.

Any help would be greatly appreciated.

Jim

Re: Another newbie question - creating shortcuts on desktop
« Reply #1 on: December 11, 2014, 12:20:59 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
You can perhaps use "App\System Tools\Portable Finder CMD" but the AutoRun shortcut Inside (Add_Shortcut,AutoRun) is may be started too early to map your Network drive.

You can also create your own script to copy your bach file, create a shortcut (MacroLibrary/Add_Shortcut) and launch it via Autorun.cmd
Code: [Select]
If,ExistFile,"%target_sys%\autorun.cmd",Begin
TXTDelLine,%target_sys%\autorun.cmd,exit
TXTAddLine,%target_sys%\autorun.cmd,"start blablabla",Append
TXTAddLine,%target_sys%\autorun.cmd,exit,Append
End

To add a pause and wait for the network if needed. Galapo's Sleep.exe is included in the build http://theoven.org/index.php?topic=52.0


 

Powered by EzPortal