+ Post New Thread
Results 1 to 2 of 2
Scripts Thread, Path Creation in Coding and Web Development; Hello I have a question related to creating a path for software as it gets rolled out. Take for example ...
  1. #1
    Bankesy's Avatar
    Join Date
    Jan 2011
    Location
    Chelmsford
    Posts
    91
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Path Creation

    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

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Quote Originally Posted by Bankesy View Post
    Do I simply add \Programming to the end of the path or does it already have to exist on the target clients?
    Code:
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Bulk User Creation Tools
    By mark in forum Downloads
    Replies: 16
    Last Post: 10th July 2007, 04:24 PM
  2. Bulk user creation
    By Dos_Box in forum How do you do....it?
    Replies: 63
    Last Post: 13th November 2006, 07:02 PM
  3. liberum and base paths
    By russdev in forum Windows
    Replies: 3
    Last Post: 13th November 2005, 03:59 PM
  4. edit file path in orca
    By russdev in forum Windows
    Replies: 1
    Last Post: 27th October 2005, 08:28 PM
  5. Change profile path for all users
    By mark in forum Scripts
    Replies: 5
    Last Post: 10th September 2005, 06:16 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •