Search code examples
windowsbatch-filewindows-xpstartup

Batch file to start all programmes in the start folder of XP


I need start all folders in a the Windows "Start/Programs/Startup folder" of an XP machine, explorer is disabled to stop top people playing and remove the Start and Task-bar.

I can run a batch file at start-up but how do I write the batch to run ALL programs in the "Start/Programs/Startup folder" the programs in the folder may change but the batch needs to remain the same

I am able to open each file individually using the below code but I really need to be able to open everything in the folder to avoid problems in the future

start "" /b "C:\Documents and Settings\User\Start Menu\Programs\Startup\PROG.appref-ms"

Solution

  • I have tried the code below, that batch starts but nothing starts

    %DIR%=C:\Documents and Settings\Pete\Start Menu\Programs\Startup
    for %%a in (%DIR%\*) do "%%a"
    

    Running the batch from the desktop also doesn't run the programs in the start folder, the DIR address is taken from windows explorer when I navigated to the folder with the short cuts in