+ Post New Thread
Page 3 of 7 FirstFirst 1234567 LastLast
Results 31 to 45 of 100
Windows 7 Thread, Shared Start Menu based on what's installed! in Technical; Originally Posted by burgemaster When I run the user script i get: Line 129, Char 12, Expected "then" ? Is ...
  1. #31

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by burgemaster View Post
    When I run the user script i get:
    Line 129, Char 12, Expected "then" ?
    Is there anything to edit in the user scipt? The startup script runs fine.

    are you missing a ' from the start of this line?
    If the Icon File contains multiple files (e.g. an array of icons) perform the action to remove this reference

    I'd say no. Seems the comment is missing the ' at start

    If the Icon File contains multiple files (e.g. an array of icons) perform the action to remove this reference

    should be

    'If the Icon File contains multiple files (e.g. an array of icons) perform the action to remove this reference


    Steve

    (Seems I was slow to notice your edit :<)

  2. #32

    Join Date
    Aug 2007
    Posts
    811
    Thank Post
    98
    Thanked 64 Times in 46 Posts
    Rep Power
    25
    Now:
    Line 31
    Char 1
    0x80041021
    (null)

  3. #33

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    I am getting an error saying there is a problem on line 7 character 2. could this be something else please?

  4. #34

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by FN-GM View Post
    I am getting an error saying there is a problem on line 7 character 2. could this be something else please?
    Which script? Main one should be commented on line 7 unless you altered it? :P

    Steve

  5. #35

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by burgemaster View Post
    Now:
    Line 31
    Char 1
    0x80041021
    (null)
    Can you try changing it to:

    Code:
    Set objWMIService = GetObject("winmgmts:impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    And see if it fixes it
    (or I'm being stupid, and it's just you haven't actually intialised strComputer with a value yet? :P Try moving the strComputer = . above the line of the problem, else it's not set to be anythign yet)

    Steve
    Last edited by Steve21; 19th May 2011 at 09:28 AM.

  6. #36

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    Quote Originally Posted by Steve21 View Post
    Which script? Main one should be commented on line 7 unless you altered it? :P

    Steve
    Ignore me it was line 5 sorry

  7. #37

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by FN-GM View Post
    Ignore me it was line 5 sorry
    Same question though

    Is it script 1, or the big one? Seeing big one has 1-11 lines commented out :P. (Or can you post your first 5 lines or w/e)

    Steve

  8. #38

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    Quote Originally Posted by Steve21 View Post
    Same question though

    Is it script 1, or the big one? Seeing big one has 1-11 lines commented out :P. (Or can you post your first 5 lines or w/e)

    Steve
    Sorry, its the startup script

  9. #39

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by FN-GM View Post
    Sorry, its the startup script
    Explains that :P What is the error with 2nd char? Does it say anything? Can't really run script to see error :P

    Thanks

  10. #40

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    Quote Originally Posted by Steve21 View Post
    Explains that :P What is the error with 2nd char? Does it say anything? Can't really run script to see error :P

    Thanks
    Please find the attached
    Attached Images Attached Images

  11. #41

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Seems more like you got robocopy missing. Does it work if you just type robocopy in cmd line? If so can probably re-word that line.

    Steve

  12. #42

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    Quote Originally Posted by Steve21 View Post
    Seems more like you got robocopy missing. Does it work if you just type robocopy in cmd line? If so can probably re-word that line.

    Steve
    If you read some previous posts i have been trouble shooting this. putting robocopy on doesnt work it doesnt error out but it doesnt copy the files either.

  13. #43

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by FN-GM View Post
    If you read some previous posts i have been trouble shooting this. putting robocopy on doesnt work it doesnt error out but it doesnt copy the files either.
    I read them, but I mean does cmd even pick up that it's installed. If you try to just type robocopy into it?

    In cmd can you type "set path" and paste what it returns? Are you missing system32 from it? (If you installed robo there)

    (Also important one, you on 64bit by any chance?)

    Steve
    Last edited by Steve21; 19th May 2011 at 10:13 AM.

  14. #44

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    Quote Originally Posted by Steve21 View Post
    I read them, but I mean does cmd even pick up that it's installed. If you try to just type robocopy into it?

    In cmd can you type "set path" and paste what it returns? Are you missing system32 from it? (If you installed robo there)

    (Also important one, you on 64bit by any chance?)

    Steve
    Will check in a second, its x86.

    I specified the full path in the script to robocopy.exe and it didn't make a difference.

  15. #45

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    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

SHARE:
+ Post New Thread
Page 3 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, 03: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, 09: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, 04:54 PM
  4. Office 2007 installed on shared drive?
    By Ben-BSH in forum Office Software
    Replies: 7
    Last Post: 23rd March 2010, 12:22 PM
  5. Replies: 24
    Last Post: 23rd January 2009, 12: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
  •