+ Post New Thread
Page 4 of 7 FirstFirst 1234567 LastLast
Results 46 to 60 of 100
Windows 7 Thread, Shared Start Menu based on what's installed! in Technical; Will give it a shot when i get back in the office. Robocopy is causing this problem - http://www.edugeek.net/forums/how-do...tml#post676851 Any ...
  1. #46

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Will give it a shot when i get back in the office. Robocopy is causing this problem - How do you do your start menus.

    Any ideas how to fix that please?

    Thanks

  2. #47

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Quote Originally Posted by Steve21 View Post
    Can you try this:

    Code:
    Dim strSource, strDest
    strSource = "\\KNG-NAS-001\Shared Resources$\Start Menu"
    strDest = "C:\Configuration\Start Menu"
    Set wshShell = WScript.CreateObject ("WSCript.shell") 	
    wshshell.run "robocopy " & Chr(34) & strSource & Chr(34) & " " & Chr(34) & strDest & Chr(34) & " /E /MIR /COPY:DATS /SECFIX /Z /W:20 /R:1"
    Had a stupid idea :P (Think the above is right, don't have a share to test it from )

    Steve
    How shall i set robocopy up? make sure its in system32?

    Thanjs

  3. #48

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,773
    Thank Post
    354
    Thanked 534 Times in 499 Posts
    Rep Power
    183
    Does it do anything if you just type robocopy in cmd? Trying to work out if it's "working" and just not the script. Or if robocopys totally dead too :P

    If you're on 32bit computer (not program) it should be in system32 yes, 64bit "computer" it should be in syswow64 thingy.

    Steve

  4. #49

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Hi,

    I have installed the Windows system tools and if i type robocopy in the cmd prompt it brings up robocopy.

    Thanks

  5. #50

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,773
    Thank Post
    354
    Thanked 534 Times in 499 Posts
    Rep Power
    183
    Then run this as a VBS file, and see if it works/errors :P (With your source and dest obviously :P)

    Code:
    Dim strSource, strDest
    strSource = "\\KNG-NAS-001\Shared Resources$\Start Menu"
    strDest = "C:\Configuration\Start Menu"
    Set wshShell = WScript.CreateObject ("WSCript.shell") 	
    wshshell.run "robocopy " & Chr(34) & strSource & Chr(34) & " " & Chr(34) & strDest & Chr(34) & " /E /MIR /COPY:DATS /SECFIX /Z /W:20 /R:1"
    Just trying to see if it's a silly error with the way it's reading the filenames.

    Steve

  6. #51

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    does not work , please find the attached.

    Thanks
    Attached Images Attached Images

  7. #52

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,773
    Thank Post
    354
    Thanked 534 Times in 499 Posts
    Rep Power
    183
    Quote Originally Posted by FN-GM View Post
    does not work , please find the attached.

    Thanks
    Oops can you try last line as:

    Code:
    wshshell.run "robocopy " & Chr(34) & strSource & Chr(34) & " " & Chr(34) & strDest & Chr(34) & " " & Chr(34) & " /E /MIR /COPY:DATS /SECFIX /Z /W:20 /R:1"
    Think I missed a "


    Errr... It says line 2, Suggest it's your destination not complete, not mine O.o

    Do you mind posting what you're using? or PM'ing if you don't want the name public?

    Steve
    Last edited by Steve21; 19th May 2011 at 01:57 PM.

  8. #53

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Quote Originally Posted by Steve21 View Post
    Oops can you try last line as:

    Code:
    wshshell.run "robocopy " & Chr(34) & strSource & Chr(34) & " " & Chr(34) & strDest & Chr(34) & " " & Chr(34) & " /E /MIR /COPY:DATS /SECFIX /Z /W:20 /R:1"
    Think I missed a "


    Errr... It says line 2, Suggest it's your destination not complete, not mine O.o

    Steve
    Thanks, but i get the same error.

    Thanks

  9. #54

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,773
    Thank Post
    354
    Thanked 534 Times in 499 Posts
    Rep Power
    183
    Quote Originally Posted by FN-GM View Post
    Thanks, but i get the same error.

    Thanks
    Made an edit above:

    Errr... It says line 2, Suggest it's your destination not complete, not mine O.o

    Do you mind posting what you're using? or PM'ing if you don't want the name public?

    Steve

  10. #55

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    The destination is ok, its the same as the one that works in Windows 7.

  11. #56

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,773
    Thank Post
    354
    Thanked 534 Times in 499 Posts
    Rep Power
    183
    Quote Originally Posted by FN-GM View Post
    The destination is ok, its the same as the one that works in Windows 7.
    My point being it's saying your string isnt terminated :P aka did you miss a " etc etc.

    As the script works here fine using a random local filepath.

    Any chance of posting the one you're using? just incase :P never know!

    Steve

  12. #57

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Your right its me

    This time it doesnt error out but opens the command prompt and closes quickly, no files copied.

    Thanks

  13. #58

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,773
    Thank Post
    354
    Thanked 534 Times in 499 Posts
    Rep Power
    183
    Quote Originally Posted by FN-GM View Post
    Your right its me

    This time it doesnt error out but opens the command prompt and closes quickly, no files copied.

    Thanks
    Is that using the original one? Or the modified one. Go back to before I editted the line and try please

    Steve

  14. #59

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    The edited version

  15. #60

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,773
    Thank Post
    354
    Thanked 534 Times in 499 Posts
    Rep Power
    183
    Quote Originally Posted by FN-GM View Post
    The edited version
    Ok getting there slowly :P

    Try this version now please:

    Code:
    Dim strSource, strDest
    strSource = "N:\Documents\test"
    strDest = "C:\test"
    Set wshShell = WScript.CreateObject ("WSCript.shell") 	
    wshshell.run "robocopy " & Chr(34) & strSource & Chr(34) & " " & Chr(34) & strDest & Chr(34) & " " & " /E /MIR /COPY:DATS /SECFIX /Z /W:20 /R:11"
    Obviously changing directories again :P

    Steve



SHARE:
+ Post New Thread
Page 4 of 7 FirstFirst 1234567 LastLast

Similar Threads

  1. Roaming profile start menu not merging with local start menu
    By OverWorked in forum Windows Server 2008 R2
    Replies: 1
    Last Post: 1st February 2011, 04:10 PM
  2. Desktop & Start Menu based on the computer
    By darren5972 in forum Windows Server 2000/2003
    Replies: 2
    Last Post: 10th November 2010, 10:30 PM
  3. Installed JoomlaXplorer but now top menu not working
    By ben_snclc in forum EduGeek Joomla 1.5 Package
    Replies: 2
    Last Post: 6th July 2010, 05:54 PM
  4. Office 2007 installed on shared drive?
    By Ben-BSH in forum Office Software
    Replies: 7
    Last Post: 23rd March 2010, 01:22 PM
  5. Replies: 24
    Last Post: 23rd January 2009, 01:09 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
  •