Jump to content

Recommended Posts

Posted

Hello

 

I have a question related to creating a path for software as it gets rolled out.

 

Take for example the command: md "%AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\IT"

xcopy "\\server\folder1\folder2\folder3\Shortcut.LNK" "%AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\IT" /h /c /y

 

That is a typical example of the current setup obviously placing shortcuts in the IT folder on the Start Menu but what if I wanted to create a sub folder under IT such as Programming?

 

Do I simply add \Programming to the end of the path or does it already have to exist on the target clients?

 

Any help will would be welcome, thank you in advance

Posted
Do I simply add \Programming to the end of the path or does it already have to exist on the target clients?

 

 

md "%AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\IT"

is creating the directory, before copying into it. So it'll create the "Programming" one, if you add that to the end.

 

Steve

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...