Tag Info

Hot answers tagged

2

I don't believe you can do this natively. However, you could possibly do it with something like AutoHotKey. A number of possible approaches are outlined in this article. The best approach seems to be: #Persistent SetTimer, test, 500 return test: IfWinNotActive, Create Event Log return sendinput test winwaitclose, Create Event Log return


2

Because your file path has a space in it, you need to wrap it in quotes so that PowerShell knows it's a single string/argument. Notice in the error: Cannot find path '\hilltop3\users$\LongRandy\My' because it does not exist. It stops at the Space after My because spaces are used to distinguish between individual arguments in the command. Try ...


1

You can use 'task scheduler' in the operating system. Create a trigger. This can be time based and has options for last day of the month. Create an action. The option to send an email is available. You will use your smtp server as the outbound server, this could be the IP address of your internal exchange server if you have one and your administrator ...


1

@echo off for /F %%i in ('dir /b /a:d') do ( dir /b /d %%i\build 2>NUL && echo rmdir /q /s %%i ) Remove the echo before rmdir if you find that it does what you want? WARNING this is a bit untested so be careful maybe better to echo to a file and run from there after edit.


1

There are many phases to the batch parser. See How does the Windows Command Interpreter (CMD.EXE) parse scripts? for more info. The FOR statement options are parsed prior to FOR variable expansion, so you cannot use FOR variables (or delayed expansion) within FOR options. I see two workarounds: 1) PUSHD to the root folder so that /R works properly with ...


1

A default timeout is 15 seconds. You can change it using -timeout switch of open command. Though in some cases Windows does not respect the timeout and may use longer (or shorter). When a connection fails (or timeouts), WinSCP will retry connection. In "batch" mode (option batch command), WinSCP 5.6 (and later) will keep re-trying for up to 2 minutes. In an ...



Only top voted, non community-wiki answers of a minimum length are eligible