Search found 1023 matches
- Wed Dec 02, 2020 12:54 pm
- Forum: Scripts and Tips
- Topic: Get target path or file of a shortcut file (.lnk)
- Replies: 0
- Views: 36909
Get target path or file of a shortcut file (.lnk)
Let>SHORTCUT_FILE=C:\...\<file>.lnk VBSTART Function GetTargetFile(LinkFile) Set WShell = CreateObject("WScript.Shell") Set objShortcut = WShell.CreateShortcut(LinkFile) GetTargetFile = objShortcut.TargetPath End Function VBEND VBEval>GetTargetFile("%SHORTCUT_FILE%"),TARGET_FILE Trick found here: h...
- Wed Dec 02, 2020 11:26 am
- Forum: Technical / Scripting
- Topic: Time since last user input
- Replies: 5
- Views: 8058
Time since last user input
I would like my server scripts to pause/resumed based on last user interaction/input. I found this but how do I define the size of the structure?
https://docs.microsoft.com/en-us/window ... tinputinfo
https://docs.microsoft.com/en-us/window ... tinputinfo
- Wed Dec 02, 2020 11:25 am
- Forum: Enhancement Suggestions
- Topic: Get mouse history
- Replies: 1
- Views: 14842
Get mouse history
Would it be possible to implement this: https://docs.microsoft.com/en-us/window ... vepointsex
I'd like to use it to track mouse gestures which could be used to trigger scripts.
I'd like to use it to track mouse gestures which could be used to trigger scripts.
- Wed Dec 02, 2020 10:56 am
- Forum: Enhancement Suggestions
- Topic: [added 15.0.23] Run command, capture STDOUT
- Replies: 29
- Views: 73802
[added 15.0.23] Run command, capture STDOUT
It would be really great if we could capture the STDOUT from a run command instead of having to rely on piping it to the clipboard or an external file. Something like this: Let>RP_CAPTURE_STDOUT=1 RunProgram>wmic path Win32_OperatingSystem get LastBootUpTime //RP_STDOUT=20201202082216.500000+060 Thi...
- Wed Dec 02, 2020 9:24 am
- Forum: Enhancement Suggestions
- Topic: CopyFile documentation
- Replies: 4
- Views: 10728
Re: CopyFile documentation
Perhaps add a switch to allow Win10 long path:
https://docs.microsoft.com/en-us/window ... ing-a-file
https://docs.microsoft.com/en-us/window ... limitation
https://docs.microsoft.com/en-us/window ... ing-a-file
https://docs.microsoft.com/en-us/window ... limitation
- Wed Dec 02, 2020 9:19 am
- Forum: Technical / Scripting
- Topic: Rename file
- Replies: 4
- Views: 2207
Rename file
If I have a fairly long file path and would like to rename it I get the "max path" error (CF_RESULT_CODE=183). How should I go about this?
- Wed Dec 02, 2020 8:32 am
- Forum: Enhancement Suggestions
- Topic: CopyFile documentation
- Replies: 4
- Views: 10728
CopyFile documentation
I ran into a problem when the copy file command returned CF_RESULT=True which is a success according to the help (https://www.mjtnet.com/manuals/v15/HTML/copyfile.html), no file was copied. The CF_RESULT_CODE was equal to 183 (0xB7) which told me that the MAX_PATH was exceeded. I think this should b...
- Sun Nov 22, 2020 3:01 am
- Forum: Technical / Scripting
- Topic: Parsing bug when having comments and/or nested IF's?
- Replies: 6
- Views: 3192
Re: Parsing bug when having comments and/or nested IF's?
Ok, yes the # is there just as a test.
- Wed Nov 18, 2020 7:21 am
- Forum: Technical / Scripting
- Topic: Using String Functions in If>{..} causes Endif problems
- Replies: 11
- Views: 5065
- Tue Nov 17, 2020 2:33 pm
- Forum: Technical / Scripting
- Topic: Parsing bug when having comments and/or nested IF's?
- Replies: 6
- Views: 3192
Re: Parsing bug when having comments and/or nested IF's?
Thanks for the update. My machine still "misbehave" with this but I've made a work around so it's no sweat.
- Tue Nov 17, 2020 9:44 am
- Forum: Technical / Scripting
- Topic: Parsing bug when having comments and/or nested IF's?
- Replies: 6
- Views: 3192
Parsing bug when having comments and/or nested IF's?
This is part of a bigger script but I want to show what appears to be a bug. Please look at the linked GIF. https://i.ibb.co/PYHQCTP/animation.gif I demonstrate the issue with this code. Let>DO_SOMETHING_WITH_THE_FILE_Var_1=.xls# UpperCase>DO_SOMETHING_WITH_THE_FILE_Var_1,DO_SOMETHING_WITH_THE_FILE_...
- Sat Oct 17, 2020 7:56 pm
- Forum: Enhancement Suggestions
- Topic: [Added] Power of (X^Y)
- Replies: 7
- Views: 13122
Re: Power of (X^Y)
Aha! Didn't know.
- Sat Oct 17, 2020 5:03 am
- Forum: Enhancement Suggestions
- Topic: [Added] Power of (X^Y)
- Replies: 7
- Views: 13122
[Added] Power of (X^Y)
It would be great if I could do this:
Code: Select all
Let>VALUE=12^2
//VALUE=144
- Mon Oct 05, 2020 6:56 am
- Forum: Scripts and Tips
- Topic: Write CMD output to file as UTF-8
- Replies: 0
- Views: 41232
Write CMD output to file as UTF-8
I have had a long time nag with my command line output to file being not UTF-8. I have now found the solution to my problem. Let>FILE_ROOT_PATH=X:\your\path RunProgram>cmd /c chcp 65001 > nul & cmd /c dir "%FILE_ROOT_PATH%\*.*" /s /b /o:gn /A-D > "%FILE_ROOT_PATH%\results.txt" To break it down... cm...
- Mon Oct 05, 2020 6:21 am
- Forum: Technical / Scripting
- Topic: Finding all files in subfolders?
- Replies: 3
- Views: 4582
Re: Finding all files in subfolders?
Yeah, I want this as well.