Batch inserting characters in file names using ren in windows

I would like to batch rename file names inserting 4 characters (“Lna_”) within the fine name as: Cdt001_10x_G75_01s_Ft1.tif -> Cdt001_10x_G75_01s_Lna_Ft1.tif , Cdt001_10x_G75_01s_Ft2.tif -> Cdt001_10x_G75_01s_Lna_Ft2.tif , Cdt001_10x_G75_01s_Ft3.tif -> Cdt001_10x_G75_01s_Lna_Ft3.tif , …

Is it possible? Thanks

Which software can take a batch of classified images and automatically learn from them to classify automatically furthe rimages?

I have a Lightroom library that contains some photos I classified myself and some other ones (in both cases, thousands) not yet classified.

I want to automatically classify images based on the tags I assigned to the images I already classified.

Most steps (I use Lightroom) are simple:

  • write XMP files
  • filter the files according to the tags
  • feed each set of images (one set per tag) to a software
  • use the output of the software to write new XMP files
  • instruct Lightroom to reload metadata from XMP files.

However, which (artificial intelligence) software can I use for the purpose?

The question is asked here in Photo because I’m asking about a ready or almost ready package, not about about which software/package to use when programming a new AI.

Parsing protocol parameter in batch file?

I’m trying to use a .bat file as a protocol handler. The protocol URL for example is testapp://close and I set the protocol to launch "C:\test.bat" "%1" in the registry.

The test.bat file

@echo off echo %1 pause exit 0 

Essentially what I want to do is just pass the parameter in the URL close to some application to execute C:/someapp.exe close however the %1 parameter I get is the full url testapp://close/. How can I parse the close parameter out of the %1 variable using only native Windows commands?

Batch control of notification channels

So I have a decent amount of apps >100 on my Samsung A8 and would like to reset all of their notification channels to urgent/popup with sound. I didn’t understand when I set all of the setting initially what I was doing and realize now that I have messed up. I have done “reset app settings” in the app menu of settings, “reset all settings” & “Factory Reset”. Notification settings are persistent for some reason. Is there an app that can let me control them in batch?

Batch file to run exe if not running – how to add a switch or argument?

Hi I have this batch file


SET EXEName=pma_schd.exe SET EXEFullPath=C:\Program Files (x86)\Trace Solutions\TRAMPS\PMA\Win32\pma_schd.exe


:StartScheduler START “” “%EXEFullPath%” GOTO EOF

It checks to see if the program pma_schd.exe is running and if not runs it. However I need to add a switch /Main to the exe to tell it which database to look at – but this errors:

SET EXEFullPath=C:\Program Files (x86)\Trace Solutions\TRAMPS\PMA\Win32\pma_schd.exe /Main

How can I add the switch /Main ??


batch file : 4 line code— This file is called by another batch file that works fine

It was suggested to repost my question on Code Review: Appreciate any feedback.

Intro: I placed some home videos on a flash drive, I have a batch file with a menu that calls on any specific video through a separate batch file designated to that video. I have placed on the flash drive a VLC portable player to use regardless of PC.

Problem: As shown below in my work, a very simple batch file with the sole purpose of starting a video using a portable copy of VLC (VLCportable).

The VLCportable\vlcportable is for opening the video player

The sdavideos\cd1\vts_02_0.ifo is location and video file to open

Surprisingly this does work, but I know it is not right and seek guidance to make the code proper and understand the correct structure.

@echo off VLCportable\vlcportable sdavideos\cd1\vts_02_0.ifo start sdavideos\cd1\vts_02_0.ifo  exit 

it was pointed out that the line……. “VLCportable\vlcportable sdavideos\cd1\vts_02_0.ifo ” line does nothing, but it does because operation works with it, but not without it.

Also it will not work without the “start” line.

Any crit will be appreciated, or opinion if you have the time.

It does work, everything is on the flash drive, but I would like it to work and also be written right lol. Thank you

Batch Reformat Date in Filenames

I hope your holiday celebrations went well. Happy New Year! I am in need of a solution that will allow me to batch reformat/rename the date appended at the end of a filename and then move the date to the beginning of the filename. I’m adopting the ISO 8601 standard (yyyy-mm-dd). After searching the web for a solution and tinkering with Automator, I haven’t found a solution.

Example 1: Current Filename: Statement 01-07-2019 Desired Filename: 2019-01-07 Statement  Example 2: Current Filename: 01-07-2019 Statement Desired Filename: 2019-01-07 Statement 

Batch API to process millions of records

I need to run Batch API on a huge dataset. Specifically I have a custom table with a lot of rows which I need to iterate over. The batch process works fine using small numbers. When using the full set I run out of memory before it even starts because I am loading a very large array of IDs to pass in to the batch function. Think of a 5 million item array. What is a good way to handle this? Break it into smaller chunks somehow to then pass in to Batch API? Increase the memory limit to an (ungodly) amount?

Batch update/create list items using REST API in Sharepoint 2013

I know the OData batch process built into SharePoint Online 2016 and O365 has not made it to SharePoint 2013 Online, but I have read a few places that say using a batch create/update IS possible in SP2013 by using the SP2010 _vti_bin/listdata.svc to do batch updates/inserts. In fact I have some code I use in Excel that does something similar by writing the entire range of data to SharePoint in a batch using the vti_bin/listdata.svc method, but I haven’t figured out how to do this using the REST API yet as there are a lot of extra steps.

I have read postings on the SharePoint Stack Exchange from the following places that tell how to do it:

Cannot find resource for the request $ batch Sharepoint server 2013

$ batch operations on SharePoint 2013 on-premise not working

Except I cannot get it to work. I am following the code in this example and making the changes as needed looking at the pastebin example the one person posted here, but have been unsuccessful in getting it to work.

I am following the instructions from here:

and from what they are saying it looks very similar to what he has in there.

Here is the code I am using:

this.batchUpdate = function (model, list, errorMsg) {             var batchContents = new Array();             var changeSetId = self.generateUUID();             var batchUuid = self.generateUUID();             var endpointUrl = SPUrl + '_vti_bin/listdata.svc/' + list              //create the changeSet             for (var index = 0; index < model.length; index++) {                  batchContents.push('--changeset_' + changeSetId);                 batchContents.push('Content-Type:application/http');                 batchContents.push('Content-Transfer-Encoding: binary');                 batchContents.push('');                 batchContents.push('POST ' + endpointUrl + ' HTTP/1.1');                 batchContents.push('Content-Type: application/json;odata=verbose');                 batchContents.push('Accept: application/json');                 batchContents.push('');                 batchContents.push(JSON.stringify(model[index]));                 batchContents.push('');             }             //End changeset to create Data             batchContents.push('--changeSetId_' + changeSetId + '--');              //generate batch body             var batchBody = batchContents.join('\r\n');              endpointUrl = SPUrl + '/_vti_bin/listdata.svc/$  batch';              //create batch specific header             var batchRequestHeader = {                 'X-RequestDigest': $  ("#__REQUESTDIGEST").val(),                 'Content-Type': 'multipart/mixed; boundary="batch_' + batchUuid + '"'             };              return $  .ajax({                 url: endpointUrl,                 type: 'POST',                 headers: batchRequestHeader,                 data: batchBody             }).then(function (data, request) {                 return data.d;             }, function (error) {                 errorMsg !== undefined && errorMsg !== null ? alertify.error(errorMsg + error.status) : null             });         } 

Any help would be greatly appreciated, I really need to get this functionality working ASAP!!