How to convert a batch file for Daemon Tools into a virtual clone drive?

I would like to convert a batch file that I used for Daemon Tool Lite for use with Virtual Clone Drive. It is important that the drive is loaded correctly before starting the program. I have tried but until now no luck. Any help greatly appreciated. This is my current batch file:

@ Echo off

set mds_file = "G: GAMES Other games WipeoutXL Wipeout.XL.mds"
set DTLite = "C: Program Files DAEMON Tools Lite DTAgent.exe"
set Prg_run = "G: GAMES Other games WipeoutXL Wipeout2.exe"
@ Echo off

IF NOT EXIST% mds_file% goto missing_mds
IF NOT EXIST% DTLite% goto missing_DTLite
IF NOT EXIST% Prg_run% goto missing_PrgToRun
echo location MDS:% mds_file% ok!
echo location DTLite:% DTLite% ok!
echo Program location:% Prg_run% ok!

: Fit the image
echo virtual drive letter Scsi% errorlevel% ok!
echo (letter of the reader: D = 3, E = 4, F = 5, G = 6, H = 7, I = 8, J = 9, K = 10, …)
echo Montage image …
% DTlite% -mount scsi,% scsi_count%,% mds_file%

% Prg_run%

: missing_DTLite
echo Error: not found% DTLite%.
go to the exit

: missing_mds
Error echo: file not found% mds_file%.
go to the exit

: missing_PrgToRun
echo Error: program to run the file not found% Prg_run%.
go to the exit

: error_add
echo Failed to add a new scsi virtual drive!
go to the exit

: error_letter
echo Can not retrieve the virtual drive letter scsi!
go to the exit

: error_mount
echo Error: Unable to mount image file% mds_file%!
go to the exit


cmd.exe – How to filter emails: just pass the text file using batch?

I had a text file
it contains over 1000 email ID and password
in the format of email: pass

But, this text file also contains some more unwanted words and phrases.
I do not want these. I only need it email: pass filtered in a separate file ..

Please, help me write a batch file to perform this action easily.

I tried the following code,

findstr / r ^ "[0-9A-Za-z] "$ infile.txt> Alphanumeric.txt

but it only works to extract Alphanumeric, which should be used to Email: pass

How to get out of the last line of a file from a batch file

I am working on a batch file for the configuration of my program.

I want to create a log from the batch file that records the time and the run date I created:

echo Setup Run Log
echo The configuration was run at% time% the% date% by% username%.
)> run.log.

But each time the code executes it, the information in the file is written.
I want the first time the batch starts, a run.log file to be created with the installer run log, and whenever the batch runs the time, date, and user name either written on the line below a line on which something has already been written.

My question: How to display the last line of a file.

rest – Relaxed API design for batch job polling

I create a relaxing web service to query the status of BatchJobs. BatchJobs are periodic jobs (to execute a command or a set of commands) that run daily or several times in a day. Each execution of a batchjob is identified by its name and the key associated with it.

For example, different executions of a batchjob with the name & # 39; crawl_amazon & # 39; (which runs every hour per day) will be identified as

crawl_amazon 05292019 RUN_1
crawl_amazon 05292019 RUN_2
crawl_amazon 05292019 RUN_24
crawl_amazon 05302019 RUN_1

I want to create a pure relaxing interface to query batchjobs (something similar to stackexchange, but I'm not sure about the appearance of the endpoints. Any suggestion here is really appreciated.

Note that batchjob is associated with many properties. For example:
first name,
Start time,
end time

Scanning – From the Linux shell, how do you batch out dust from images with the help of dust scanning?

I have a lot of scans done with the same scanner. After noticing that there were some traces of dust on the images, I scanned the dust in the hope of removing the dust from the images, but I could not understand it. Is there a way to use ImageMagick (or a similar script utility that runs under Linux) to use dust analysis to magically remove dust from the rest of the images?

batch – Copy local files to the remote IIS server

I wrote a script that:

  1. connects to an IIS server
  2. stop a website
  3. copy its files to a backup folder (on the remote machine)
  4. copy files from my local computer to replace those on the remote IIS server
  5. then restart IIS.

The script works, but I'd like to make it cleaner (I've restored it). No suggestion?

@ Echo off

C:  Users  me  Documents  PSTools  PsExec -u "mydomain  myuser" -p "mypwd"% windir%  system32  inetsrv  appcmd stop sites ""

to sleep 5

for / f "tokens = 2 delims ==" %% a in (wmic OS Get local time / value) sets "dt = %% a"
set "AA =% dt: ~ 2.2%" & set "AAAA =% dt: ~ 0.4%" & define "MM =% dt: ~ 4.2%" & set "DD =% dt: ~ 6.2% "
set "HH =% dt: ~ 8.2%" & set "Min =% dt: ~ 10.2%" & set "Sec =% dt: ~ 12.2%"
set "fullstamp =% YYYY% -% MM% -% JJ% _% HH% -% Min% -% Sec%"

NET USE \ / u: mydomain  myuser "mypwd"

rem moves files and directories and then deletes the source
robocopy / e / move \  C $  inetpub  wwwroot \  C $  Users  me  Desktop  OLD_web_builds  test.mysite % fullstamp%

rem copy vs files published on the remote server. exclude UL_LK folder
robocopy C:  Users  me  Desktop  _REPOS  invwebops  InvWebOps  bin  Release  netcoreapp2.2  publish \  C $  inetpub  wwwroot / e / XD "C:  Users  me  Desktop  _REPOS  invwebops  InvWebOps  bin  Release  netcoreapp2.2  publish  wwwroot  UL_LK

rem restart test.mysite
C:  Users  me  Documents  PSTools  PsExec -u "mydomain  myuser" -p "mypwd"% windir%  system32  inetsrv  appcmd startup sites ""

set / p DUMMY = Press ENTER to continue ...

Can not save product in batch

I want to create a bundled product, but when I click the Save button, nothing happens, no backup, no error message, nothing in the console … Can any one help? Thank you!

enter the description of the image here

enter the description of the image here

enter the description of the image here
enter the description of the image here
enter the description of the image here

enter the description of the image here

enter the description of the image here

enter the description of the image here

Batch Script to select files by date

I want to create a batch script that will parse a folder and its subfolders, search for XML files, place it in a temporary folder, and then compress it with 7-Zip.
Below, a script using WinRAR, but I wanted to do it without using a program, but rather commands.

@echo off
:: add files to an archive
:: – ep excludes paths from names
:: r repairs a damaged archive
– – edit modified files after the specified date
:: – Process files tb modified before the specified date
@echo Enter the data correctly.
@ echo ###########################
set LOCAL_XML = C: Fashion 2.0 nfce files signed * .XML
set LOCAL_XML_2 = C: Fashion 2.0 nfe files signed * .XML
SET LOCAL_BACKUP = "D: Documents Desktop Shopsync"
* .zip
@echo Enter the year:
SET / p YEAR =
Enter the month:
SET / p MES =
@echo Enter the start date:
@echo Enter the end date:
@echo Wait for the generation of the compressed file …

"% ZIPFER%" -ep -r -ta% YEAR %% MONTH %% FIRST_DATE% -tb% YEAR %% MONTH %% FINAL_DATE% 235959% LOCAL_BACKUP% sales% YEAR %% MONTH %% FIRST_DAY% "a" % YEAR %% MONTH %% DAY_DAY% .zip "% LOCAL_XML%"
"% ZIPFER%" -ep -r -ta% YEAR %% MONTH %% FIRST_DATE% -tb% YEAR %% MONTH %% FINAL_DATE% 235959% LOCAL_BACKUP% sales% YEAR %% MONTH %% FIRST_DAY% "a" % YEAR %% MONTH %% DAY_DAY% .zip "% LOCAL_XML_2%"

python – How can I apply a 2D TensorFlow convolution (`tf.nn.conv2d ()`) to a single 2D image (without a batch)?

I would like to use the function tf.nn.conv2d () on a unique example, but the TensorFlow documentation seems to mention only the application of this transformation to a lot images.

The documentation mentions that the image of entry must be of form [batch, in_height, in_width, in_channels] and the core must be of shape [filter_height, filter_width, in_channels, out_channels]. However, what is the easiest way to perform a 2D convolution with an input form? [in_height, in_width, in_channels]?

Here is an example of the current approach, where img has the shape (height, width, channels):

img = tf.random_uniform ((10,10,3)) # a single image
img = tf.nn.conv2d ([img], core)[0] # create a batch of 1, then index the single example

I reshape the entry as follows:

[in_height, in_width, in_channels]->[1, in_height, in_width, in_channels]->[in_height, in_width, in_channels]

This sounds like an unnecessary and expensive operation when I am only interested in the transformation of an example.

Is there a simple / standard way to do it that does not require remodeling?

batch – It's possible to do something similar with .bat

Well, I do not have a lot of programming knowledge and I'm asking something that maybe it's not even possible to do in .bat, but is specific using findstr?(year)(month)(day)(time) .pdf and would like a script that could have at least the day in the file name or in the files, as it can have a lot of them with the same date and create a condition that generates a .log showing files on 5 days for example obsolete today, 16/04/18 is displayed in this newspaper in all with 11 days for example and that's it! Is it possible something like this?