Jump to content

Recommended Posts

Posted

Good day,

Is it possible to copy the entire contents of the Start Menu without having to create the entire destination path? I have tried both FileCopy and DirCopy with not success.

For example, Example A "works", whilst Example B does not!?!

;Example A
#include <FileConstants.au3>
Local $_sSrcPath = "C:\Users\Dell\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SAWStudio64"
Local $_sDstPath = "D:\Install\App_Install\Digital_Audio\1_RML_Labs\Data\Source_Data_C\Users\Dell\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SAWStudio64"
DirCopy($_sSrcPath, $_sDstPath, $FC_OVERWRITE)

;Example B
#include <FileConstants.au3>
Local $_sSrcPath = "C:\Users\Dell\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SAWStudio64"
Local $_sDstPath = "D:\Install\App_Install\Digital_Audio\1_RML_Labs\Data\Source_Data_C"
DirCopy($_sSrcPath, $_sDstPath, $FC_OVERWRITE)

Thank you!

Posted

Use robocopy.exe (windows build in tool)

 

Keep in mind, that the Windows start menu is a "synthesis" from "user start menu" and "all users start menu" = C:\ProgramData\Microsoft\Windows\Start Menu

 

 

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...