SFTP Net Drive Batch File

I am currently using the following software to map my FTP servers to windows. I have multiple profiles which i would like to start, when windows starts.

I have created my pofiles and then a simple batach file like this:

start " " C:\Program Files (x86)\SFTP Net Drive 2017>SftpNetDrive.exe start /profile:"FTPserver1" start " " C:\Program Files (x86)\SFTP Net Drive 2017>SftpNetDrive.exe start /profile:"FTPserver2" exit 

When i run the batch file, i get an error saying windows cannot find the program.

If i copy the above command directly into CMD it works.

Any ideas what the issue could be?

Thanks

Batch edit ID3 music tags using custom algorithm

I like to keep my iTunes library organised and all files well-tagged, so I often spend enjoyable yet unreasonably long amounts of time editing all the ID3 tags manually. Call it OCD or perfectionism, that’s how I roll. Thankfully, iTunes is rather convenient for basic operations like batch-changing tags or artworks, but it only goes so far. The problem is that for much music I get, the tags have to be edited for each track individually, taking into account details like numbers and such. Here’s an example of what I mean:

Track names and numbers need individual formatting

Notice that files have no embedded track numbers, and are numbered within the track name instead. This picture is more to my liking:

Manually renamed and retagged tracks

To achieve this within bare iTunes, one would have to input track numbers by hand and then remove the ХХ - from each name. Now, I can of course do this by repeatedly mashing the favoured combo (holding : Left Mouse Button), but when I need it for 300 tracks across numerous albums, this turns into a problem.

So I want to have a quick way for my Mac to do this for me. I imagine something like a script that extracts track numbers from file names or name tags through use of wildcard characters and applies them to respective ID3 tags while removing numbers from names. Finder has a handy built-in dialog for batch-renaming, but as far as I know it doesn’t have this specific formatting functionality. I tried Automator and MusicBrainz Picard, but they don’t have that either.

Is there anything that can be of help? Script libraries for Automator or Terminal commands? Maybe some handy AppleScript functions I don’t know of?

Use PowerShell as defaut Shell but discard it during runtime for batch file

I use PowerShell as my default shell in Dockerfile to accomplish some tasks, such as add new users and groups to my container build.

DockerFile (relevant)

SHELL ["powershell.exe", "-Command", "$  ErrorActionPreference = 'Stop'; $  ProgressPreference = 'Continue'; $  verbosePreference='Continue';"] RUN New-LocalUser -Name "testuser" -Password (ConvertTo-SecureString -AsPlainText "CrackPassword!" -Force) -FullName "Test.User" -Description "LocalAdministrator" RUN Add-LocalGroupMember -Group administrators -Member  testuser -Verbose RUN "C:/Windows/Microsoft.NET/Framework64/v4.0.30319/InstallUtil.exe" /username=.\testuser /password=CrackPassword! /LogToConsole=true /ShowCallStack TestDockerService.exe 

Within the same DockerFile, I specify a CMD to run a batch file when the Docker container runs.

COPY testbat.bat /testbat.bat CMD testbat.bat && cmd 

The image builds fine, but Docker Run doesn’t work, complains :

At line:1 char:111 + ... rence = 'Continue'; $  verbosePreference='Continue'; testbat.bat && cmd +                                                                    ~~ The token '&&' is not a valid statement separator in this version.     + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordEx    ception     + FullyQualifiedErrorId : InvalidEndOfLine 

I guessed there was an issue with running CMD inside a SHELL, and some quick research has demonstrated it may be so…

Is there any way to close the SHELL session invoked, or overrride it with CMD during run time?

Possible to use Variables in Batch file to call an EXE with those variables as command-line arguments? How?

Possible to use Variables in Batch file to call an EXE with those variables as command-line arguments? How?

I read that we can SET various kind of variables in a Batch file.

Can they be used as values to pass as Arguments to an EXE being called/ invoked within that Batch file?

Problema com batch de arquivo python ao ativar gerenciador de tarefas do windows

Fiz um arquivo batch para rodar um pequeno script em python, ele funciona normalmente, mas quando uso agendador de tarefas do windows para acionar o batch em um horario especifico ele apresenta o seguinte erro:

inserir a descrição da imagem aqui

Onde fala que o erro esta nessa linha, mas não consigo ver nada de errado nela:

driver = webdriver.Firefox(firefox_binary=binary, executable_path=r'C:\scrapy\geckodriver.exe', firefox_profile = profile) 

Pesquisei sobre e falaram que problema com permissão do usuário, mas estou usando um usuário que é adm

How to batch change file creation date to file modified date on Windows?

I have a lot of files which have their timestamps messed up. Particularly, file modified timestamp reflects the date the files were actually created, but the file creation timestamp reflects some later date at which the files were either burned to DVDs for backup or copied back from them.

How can I batch replace file creation date and time with file modified date and time? Preferably using command line operations, power shell, vbs scripts, or other native tools, although I’m fine with using third-party software.

The OS is Windows 7.

Thanks.

Spring batch for database migration and concurrency

I am writing a Spring batch application to periodically copy over data from a table in one database (IBM DB2) to a table in another database (SQL Server). Reading the Spring batch documentation gives me these pointers on concurrency –

1) Online (possibly many in this case) and offline applications (the batch application here) should follow the same strategy for locking.

2) The database, on its own may require explicit locking for reading and/or writing. In addition, the applications can use implicit optimistic (based on last update timestamp) or pessimistic locking (based on explicit lock column in table).

At this time, I do not have information on the locking strategy used by the online applications which write to (or read from) either database, but plan to find out.

My questions –

1) Should I even worry about locking/concurrency in relation to the source database? – since I am only reading from it. What can be the impacts of not considering locking when reading from the source?

2) When the online applications’ locking strategy is known, what should be the corresponding strategy of the offline application? For example, if the online application follows DB2’s default Cursor Stability isolation level, what strategy should the batch application follow?

3) How will working over multiple rows as opposed as opposed to one, affect the design?

4) What questions should I be asking the designers of the online applications?

How to batch convert picture to concatenate them?

I have 6.000 pictures with two horizontal bars of text in them, one at the bottom, one at the top.

The goal is to cut the topbar and put it under the bottombar of text. How would I do that in a batch process? I know XnView can cut pictures in half and/crop them in a batch process, but the trick seems to be to stitching them back together in batch.

From the left picture to the picture on the right

youtube-dl ‘youtube-dl’ is not recognized as an internal or external command, operable program or batch file

I have already added the path to environment path variable.

Screenshot of path environment variable

But when I tried to execute it through cmd . I am getting the error

‘youtube-dl’ is not recognized as an internal or external command, operable program or batch file.