Search found 129 matches

by mirrormirror
09 Jul 2020 21:47
Forum: DOS Batch Forum
Topic: Code logic problem - transform lines to columns
Replies: 4
Views: 5364

Re: Code logic problem - transform lines to columns

I wanted to say thank you so much to both of you for the help. I tried both of these solutions but did not get the solution from aGerman to work fully. It may be how I incorporated the code into my existing batch file. I plan to play around with it a bit more to see if I can find the problem. May I ...
by mirrormirror
08 Jul 2020 10:01
Forum: DOS Batch Forum
Topic: Code logic problem - transform lines to columns
Replies: 4
Views: 5364

Code logic problem - transform lines to columns

Hey all, I have multiple text files from which I would like to extract information and import into a sqlite database. Here is how the format currently looks: CM004 Change Ticket CM006 Solidifi & Change Management Block 'Removable' Media Forcepoint Social Media Block DLP002 Forcepoint, Scanning Web C...
by mirrormirror
20 Feb 2017 18:50
Forum: DOS Batch Forum
Topic: Need help copying files from android phone
Replies: 6
Views: 8849

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: 8849

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: 8849

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: 44
Views: 211421

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: 3581

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: 8410

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: 5432

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: 4662

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: 8410

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: 8410

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: 4662

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: 62158

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: 7832

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