New Laptop - empty m.2 socket - doesn'r recognise SSD

Page 5 of 5 FirstFirst ... 345
  1. Try3's Avatar
    Posts : 7,411
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #41

    Caledon Ken said:
    I'll have a look. Initially I can see you are pretty advanced at writing scripts.
    If I was then I would not have to call that separate VBS script. I have not yet been able to find any other way of getting the voice announcement to happen as the dialog opens [My inability with PS keeps.forcing me to announce it then show it, or the other way around, instead of in parallel]

    Denis
      My Computer

  2. Try3's Avatar
    Posts : 7,411
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #42

    Ken,

    I should also have noted that the bits you can change around are within the batch file sections
    :::::::::: NotnType - Announce, icon, colours ::::::::::
    :::::::::: Form definition and contents ::::::::::

    Denis
      My Computer

  3. ArthurDent's Avatar
    Posts : 215
    Windows 10 Pro (x64) 20H2 (OS Build 19042.630)
    Thread Starter
       #43

    In light of the advice offered in this forum regarding lmiting the number of re-tries, shortening the wait period and ensuring that junction points are not followed.

    Following line is an example of my v3 script ...

    Robocopy "C:\Users\AD\Music" "%BackupDrive%\My Music" /S /R:3 /MT:1 /DCOPY:DAT /XA:SH /MIR /W:3 /XJ

    Just need to try to 'protect' the script as advised by Try3 to prevent malicious attacks.

    I've run the script several times now and I am impressed by it only now copying files/folders that have changed.

    Thanks for all the advice so far, especially Denis.

    Art
      My Computers

  4. Try3's Avatar
    Posts : 7,411
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #44

    Art,

    I have never really bothered with trying to reduce /R to 3 or indeed any particular level so I cannot really comment [I only include the /R switch to avoid it using its default value of 1 million]. I can see that using /W to reduce the waiting time between retries is useful and I have no idea why I haven't bothered doing the same. Thanks to you I've now noted that for when I next review my batch files.

    I've rather excluded you from the last several posts about scripting. I didn't think you would find them useful. I suggest that, if you are ever going to bother learning such things at all, learn PowerShell, the built-in scripting language within Windows.
    - PowerShell is logical & well-structured. Individual Windows commands such as RoboCopy each have their own peculiarites and you have to study each one to see how to use it. VBS is better structured but has limited capabilities and is no longer maintained [my VBS Help file is very useful for the odd bits of VBS that I use but it is from 2001 - it was copied from an old computer because Windows no longer bothers providing this Help file].
    - I learnt Windows commands and VBS ages ago because there was little option at the time. If I was starting from scratch I would also go straight to PowerShell.
    - If you ever have a need to use a specific Windows command then fine, it is not wasted effort if you need that particular one.
    - - But always bear on mind that many online guides are out-of-date yet do not admit that.
    - - Always start off by running a Command prompt with the syntax SomeCommandOrOther /? to get the built-in & up to date Help
    - - Then you can study Command-Line Reference - TechNet and command index - SS64 to learn more but experiment with anything that contradicts the Help info because it might not be correct.

    Denis
      My Computer

  5. Caledon Ken's Avatar
    Posts : 24,170
    Windows 10 Pro x64 Version 2004
       #45

    ArthurDent said:
    I've run the script several times now and I am impressed by it only now copying files/folders that have changed.
    Art

    Regarding your comment. That is the way Robocopy works by default so everything is working as it should.

    New Laptop - empty m.2 socket - doesn'r recognise SSD-image.png

    Makes the copying process very fast.
      My Computer

  6. ArthurDent's Avatar
    Posts : 215
    Windows 10 Pro (x64) 20H2 (OS Build 19042.630)
    Thread Starter
       #46

    Thanks once again Denis.

    You had posted (somewhere - but currently I can't find it) how to protect the script by using permissions. Looked useful/ Perhaps you could re-post the info or a link?

    @Caledon Ken

    Didn't realise that was its default operation. Still learning.

    This is my first foray into using a batch file and it seems to have gone well. Now using it on 2 machines (shortly to be extended onto a third).

    One query for both of you if I may (or anyone else that can help for that matter)...

    I intended to run it on my wife's Win 10 machine so that it would regularly run at at specified time (I selected 18:00 each day) and run immediately if the time had passed because the machine was off. However, Event Manager wanted a username and password combo. I tried my wife's logon password (no joy) and her M$oft account and password (again no joy). I am at a loss as to what exactly is wanted here. Any ideas?

    My wife's machine is running Win 10 Home / 1909 (OS Build 18363.657)

    Art
    Last edited by ArthurDent; 03 Mar 2020 at 15:22.
      My Computers

  7. Try3's Avatar
    Posts : 7,411
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #47

    Art,

    It is in the annex to my article Make Task scheduler run a batch file minimised and with a specific icon - TenForums

    About your comment about RoboCopy defaults - that is what the /MIR switch achieves for you.

    The Task scheduler problem with your wife's machine cannot be answered in a single sentence. Please answer these questions -
    1 When you opened task scheduler on her machine, did it demand admin permission to open? I expect it to.
    2 Are you setting the checkbox in the task properties for use highest privilaeges or not? I do not expect you to.
    3 If your answers are, "Yes" then "No", I do not see what the problem could be.
    4 If your answers are, "No" then "No", I suggest making a new shortcut to Task scheduler that does demand admin permission.
    - Create the shortcut to C:\Windows\System32\taskschd.msc then right-click, Properties, Shortcut tab, Advanced button, set the checkbox for Run as Admin.
    - Try again with this.

    Denis
    Last edited by Try3; 03 Mar 2020 at 20:21.
      My Computer

  8. ArthurDent's Avatar
    Posts : 215
    Windows 10 Pro (x64) 20H2 (OS Build 19042.630)
    Thread Starter
       #48

    Thanks. I knew I'd seen it somewhere but couldn't find it (mainly because I was looking in your posts in this thread )

    Try3 said:
    About your comment about RoboCopy defaults - that is what the /MIR switch achieves for you.
    Of course

    Try3 said:
    The Task scheduller problem with your wife's machine cannot be answered in a single sentence. Please answer these questions -

    1 When you opened task scheduler on her machine, did it demand admin permission to open? I expect it to.
    Nope!

    Try3 said:
    2 Are you setting the checkbox in the task properties for use highest privilaeges or not? I do not expect you to.
    Nope!

    Try3 said:
    3 If your answers are, "Yes" then "No", I do not see what the problem could be.

    4 If your answers are, "No" then "No", I suggest making a new shortcut to Task scheduler that does demand admin permission.

    - Create the shortcut to C:\Windows\System32\taskschd.msc then right-click, Properties, Shortcut tab, Advanced button, set the checkbox for Run as Admin.

    - Try again with this.
    No need apparently as it ran (as I had told it to do) within a minute of opening up the laptop at 9:25pm (scheduled for 18:00 each day or "Run the task as soon as possible after a scheduled start is missed").

    Art
      My Computers


 
Page 5 of 5 FirstFirst ... 345

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 22:59.
Find Us




Windows 10 Forums