PDA

View Full Version : Setupcomplete.cmd non riesco a copiare un file


mattware
10-12-2018, 12:15
stò letteralmente impazzendo:muro:
parliamo di win10
ho creato:
- la cartella $oem$\$$\setup\scripts\setupcomplete.cmd
all'interno ho scritto questo:
xcopy %homedrive%\unattended\InstPrep.cmd "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup" /c /h /r /k

- la cartella $oem$\$1\unattended (cosi da copiare tutta cartella automaticamente in c:\)

a fine installazione non parte un benemerito tubo tramite esecuzione automatica (start menu) perchè non copia il file instprep.cmd

però se lancio in comando da cmd una volta in windows parte
perchè non viene eseguito il comando del file setupcomplete.cmd
dove sbaglio ?

Nicodemo Timoteo Taddeo
10-12-2018, 12:58
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-a-custom-script-to-windows-setup

Run a script after setup is complete (SetupComplete.cmd)

Order of operations

After Windows is installed but before the logon screen appears, Windows Setup searches for the SetupComplete.cmd file in the %WINDIR%\Setup\Scripts\ directory.

If a SetupComplete.cmd file is found, Windows Setup runs the script. Windows Setup logs the action in the C:\Windows\Panther\UnattendGC\Setupact.log file.

Setup does not verify any exit codes or error levels in the script after it executes SetupComplete.cmd.

mattware
10-12-2018, 13:02
ovviamente so come si fà...solo che è il comando all'interno del file setupcomplete.cmd che non parte, come ho scritto chiaramente

Nicodemo Timoteo Taddeo
10-12-2018, 13:20
ovviamente so come si fà...solo che è il comando all'interno del file setupcomplete.cmd che non parte, come ho scritto chiaramente

Se lo sai mi ritiro in buon ordine. :) Buon impazzimento.