Windows 10: copy command in an unattend file to just copy shortcuts to the desktop

Discus and support copy command in an unattend file to just copy shortcuts to the desktop in Windows 10 Support to solve the problem; Hello All, I have created a new image for our laptops that we are deploying out. In this new image I would like to copy two shortcuts to the local... Discussion in 'Windows 10 Support' started by jcrod73, Jun 10, 2021.

  1. jcrod73 Win User

    copy command in an unattend file to just copy shortcuts to the desktop


    Hello All, I have created a new image for our laptops that we are deploying out. In this new image I would like to copy two shortcuts to the local administrator's desktop. I have the administrator's account to be set to active under the 4 specialize section of the answer file. The administrator account is also set to auto login. Everything runs as it should when I mage a laptop BUT the commands I have entered to just copy the .lnk files from a folder on the root of C:\ to the Administrator's desktop does not work. I basically copied the command I used at the command prompt to make sure the command works and it does if I run it manually. I have created a SynchronousCommand under the 7 oobe System>FirstLogonCommands section with the following command under the Settings>CommandLine field: copy "C:\_Install\XImaging\DesktopIcons\_Install Folder.lnk" C:\Users\Administrator\Desktop What am I doing wrong??

    :)
     
    jcrod73, Jun 10, 2021
    #1
  2. temp02 Win User

    Java.nio.file - Copying files

    You can't copy a folder, thats why it generates an exception (you are trying to copy a folder using a copy file function).
    You probably need to list all the files inside that folder and copy one by one
     
    temp02, Jun 10, 2021
    #2
  3. Wozzer Win User
    Java.nio.file - Copying files

    Issue was the above, so thanks temp02.
     
    Wozzer, Jun 10, 2021
    #3
  4. copy command in an unattend file to just copy shortcuts to the desktop

    how do i copy harddrive?

    No the move command, will reset all shortcuts and registry entries, trust me i cut and pasted a whole hard drive once and wow, what a mistake. From then on i i used the move command, so you din't need to re do all of the shortcuts and such.

    If your copying windows, do it in dos, when windows isn't running.
     
    pepsi71ocean, Jun 10, 2021
    #4
Thema:

copy command in an unattend file to just copy shortcuts to the desktop

Loading...
  1. copy command in an unattend file to just copy shortcuts to the desktop - Similar Threads - copy command unattend

  2. Will copying shortcut files to an external hard drive also copy everything in the shortcut...

    in Windows 10 Network and Sharing
    Will copying shortcut files to an external hard drive also copy everything in the shortcut...: I have to reboot my PC, and I have many photos stored inside of shortcut folders. If I copy these shortcut folders to an external hard drive, will it also safely transfer the photos stored inside the shortcuts?...
  3. Copy command is not working

    in Windows 10 BSOD Crashes and Debugging
    Copy command is not working: Year of 2021. Windows OS, a 36-year old operating system. Running the latest Windows 10 release with all the latest updates applied. Copy/Cut commands have stopped working. My wild guess, they just got tired. Commands don't work if I either press Ctrl+C/X or r-click >...
  4. Copy command invalid

    in Windows 10 Virtualization
    Copy command invalid: I am trying to set up another selection in the boot order. this is from the instructions i got out Hypervisor notes in the tutorial for running hyper-v [img] is there another instruction that can be used? I am using the microsoft shell for Administrator. Thank you...
  5. Can no longer move/copy files to shortcuts.

    in Windows 10 Support
    Can no longer move/copy files to shortcuts.: The subject says it. Windows will no longer let me drag & move or copy to a shortcut. Is there a fix? [img] 156902
  6. Copying original files from shortcut location

    in Windows 10 Network and Sharing
    Copying original files from shortcut location: I have a number of folders (tree structure) all containing exclusively shortcuts to various files stored across a myriad of different folders. Initially I set it up this way as I sifting through documents and sorting them for a separate project but didn't want to duplicate...
  7. copying files

    in Windows 10 Network and Sharing
    copying files: How do I transfer music files to my linked phone? https://answers.microsoft.com/en-us/windows/forum/all/copying-files/883dd539-1427-418a-b163-426df9d620fd"
  8. Cannot copy files from command prompt

    in Windows 10 Installation and Upgrade
    Cannot copy files from command prompt: My Windows 10 will not load. I was going to try to reinstall it but wanted to copy some of my documents, pics, and music via C: but am getting an error message 0x80004005 trying to copy the files to USB. I am not able to get into Windows, therefore I have not been able to...
  9. Trying to copy with command prompt

    in Windows 10 Network and Sharing
    Trying to copy with command prompt: I've been trying for hours now, with copy, xcopy and robocopy, to just copy one file from my hard drive to a thumb drive. I can't even get it to copy it from the desktop, to the desktop. I've tried I think 40 or 50 different combinations, based on different articles that I'm...
  10. Copying files to Desktop: "There is not enough space on Desktop"

    in Windows 10 Support
    Copying files to Desktop: "There is not enough space on Desktop": Hello, Copying files from external HD to my new PC and: "There is not enough space on Desktop. You need an additional 210 GB to copy these files" I have 2 drives on the machine: SSD (for apps) HD (1.8 Tb for files) .. when I copy files to desktop, they should...