Search found 127 matches

by mirrormirror
20 Feb 2017 18:50
Forum: DOS Batch Forum
Topic: Need help copying files from android phone
Replies: 6
Views: 1650

Re: Need help copying files from android phone

MTP was not designed to function that way. Sure, but the batch command-line was not designed to do much of what you guys do here If windows explorer can see the sd card then perhaps there is a way for the command-line to see it - just looking for anything others might have tried or used - even 3rd ...
by mirrormirror
20 Feb 2017 17:40
Forum: DOS Batch Forum
Topic: Need help copying files from android phone
Replies: 6
Views: 1650

Re: Need help copying files from android phone

Thank you for the response. I will need to try later but doesn't that mode demand single-use access? In other words, it only allows access to the card from the plugged-in computer or from the android OS, but not both. I've seen this before but not sure which version of android OS. I was hoping for a...
by mirrormirror
20 Feb 2017 13:45
Forum: DOS Batch Forum
Topic: Need help copying files from android phone
Replies: 6
Views: 1650

Need help copying files from android phone

I would like a batch file to copy files from an android device \sdcard to a specified location - after plugging in the phone. I know how to write the batch copy and everything but I can't figure out how to access the android storage device from within a command-prompt. If I could get it mounted as a...
by mirrormirror
20 Nov 2016 23:21
Forum: DOS Batch Forum
Topic: Foxidrive has left us
Replies: 28
Views: 10709

Re: Foxidrive has left us

Just wanted to express my sorrow. I had no clue he was ill. He helped me out more than once and I am grateful for that.

Makes us think about our mortality and also eternity...
by mirrormirror
20 Nov 2016 16:20
Forum: DOS Batch Forum
Topic: multi-threaded batch commands
Replies: 1
Views: 958

multi-threaded batch commands

stumbled across this utility and thought some of you might find it useful:

https://github.com/lordmulder/MParallel

MParallel is a batch processor with multi-threading support, i.e. it will run multiple tasks in parallel. This can be very useful, not only, to take full advantage of multi-processor (multi-core) machines.
by mirrormirror
01 Aug 2016 20:57
Forum: DOS Batch Forum
Topic: find path of a shortcut calling a batch file
Replies: 5
Views: 2188

Re: find path of a shortcut calling a batch file

Hello aGerman - you have been very helpful - thank you. I created the script per your instructions and it seems to refresh my desktop icons (I can see the icons flash for a moment) but it doesn't seem to refresh my toolbar icons :( But no need to continue looking I can deal with the issue.
by mirrormirror
31 Jul 2016 14:57
Forum: DOS Batch Forum
Topic: question on "global" FOR variables.
Replies: 3
Views: 1326

Re: question on "global" FOR variables.

Thanks to both of you - the example and link to the earlier discussion helped clarify.
by mirrormirror
31 Jul 2016 14:55
Forum: DOS Batch Forum
Topic: need help - trying to call a macro from within a macro
Replies: 2
Views: 1292

Re: need help - trying to call a macro from within a macro

It seems no possible to call a macro from within another macro.

Ok, thank you - I won't waste any more time trying then.

If you ever manage to disprove this statement please let us know :)
by mirrormirror
31 Jul 2016 14:51
Forum: DOS Batch Forum
Topic: find path of a shortcut calling a batch file
Replies: 5
Views: 2188

Re: find path of a shortcut calling a batch file

Thanks much - I think this may work. Sometimes I need to disable screensaver / monitor power off features while watching videos (sometimes my player's functionality doesn't work 100%) So I created a small script to toggle these things on/off. It then changes the IconLocation property to a different ...
by mirrormirror
30 Jul 2016 13:41
Forum: DOS Batch Forum
Topic: find path of a shortcut calling a batch file
Replies: 5
Views: 2188

find path of a shortcut calling a batch file

If I have a windows shortcut that launches a batch file is there any way for the batch file to "know" the location of the shortcut for use within the batch file itself? I don't mean hard-coding the path or even passing it as a parameter within the shortcut call - I want it to dynamically b...
by mirrormirror
30 Jul 2016 11:58
Forum: DOS Batch Forum
Topic: need help - trying to call a macro from within a macro
Replies: 2
Views: 1292

need help - trying to call a macro from within a macro

So I'm just getting started with macros and there is no particular purpose in mind with these other than learning. I've taken jeb's :strlen function and converted it and also made a generic "macro1" to echo out some values. Both of these are working but I can't seem to call the %strlen% ma...
by mirrormirror
29 Jul 2016 16:56
Forum: DOS Batch Forum
Topic: Macros with parameters appended
Replies: 29
Views: 19403

Re: Macros with parameters appended

Also, Aacini, when I try your code from this post: http://www.dostips.com/forum/viewtopic.php?f=3&t=2518#p12045 it doesn't work - i.e. my output differs from what you indicated in your post: your code: @echo off cls setlocal DisableDelayedExpansion set LF=^ ::Above 2 blank lines are required - d...
by mirrormirror
29 Jul 2016 16:30
Forum: DOS Batch Forum
Topic: function to write any string to a text file without manual escaping
Replies: 6
Views: 1985

Re: function to write any string to a text file without manual escaping

And to add an example of where I had a prior problem here: http://www.dostips.com/forum/viewtopic.php?f=3&t=7291 I suppose I could simply echo out each line seperately (without parentheses) and not have to worry about escaping my parentheses " ^) " I'll try it next time
by mirrormirror
29 Jul 2016 16:06
Forum: DOS Batch Forum
Topic: function to write any string to a text file without manual escaping
Replies: 6
Views: 1985

Re: function to write any string to a text file without manual escaping

First the redirect character then the filename

:oops: - maybe I have the onset of dyslexia !
Thank you - this is simple and easy. I thought certain characters would cause issues with redirection to a file but I guess I am wrong. Maybe I am getting redirect confused with pipe...
by mirrormirror
29 Jul 2016 15:50
Forum: DOS Batch Forum
Topic: function to write any string to a text file without manual escaping
Replies: 6
Views: 1985

Re: function to write any string to a text file without manual escaping

One of the issues I run across is that I can read text lines from files fine but sometimes can't write out those same lines. I tried your example using this string but get the error you see in the output below: @ECHO OFF &SETLocal DISABLEDelayedExpansion FOR /F "tokens=* delims=" %%a I...