back soft

مطالب مرتبط با «batch file» در back soft | نویسنده: استخدام کار

Batch file to delete all files in directory except for system files

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

How do I append the current folder with date by batch file

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

How to open Deployment and Imaging Tools Environment as admin in batch file

Vote count:
 0i have problem to run Deployment and Imaging Tools Environment as admin and run my exe file in the batch file. i manage to open the Deployment and Imaging Tools Environment as admin using this codes in batch:Start "" "C:D...

ادامه مطلب

windows batch:unable to copy files containing html tags to another file after manipulation

Vote count:
 0Hi everyone i am very new to batch scripting,As part of my project i need to add text in the middle of bunch of files,which i am able to do it successfully,but after copying the file to new location i noticed that the html tags are missing ,i tried every possible way to sor...

ادامه مطلب

Writing a batch file to uninstall "psiphon"

Vote count: 0 There is a program that I am currently trying to write a batch uninstaller for. In this case I would normally uninstall using WMIC, however the program is not listed under "wmic product get name | sort". I can tell that it is making registry entries, so I know if the program is on the machine and was considering an if statement to check for those entries. Any ideas on how to uninstall the program "psiphon" through batch or powershell? asked 37 secs agoTtech Let's block ads! بخوانید...

ادامه مطلب

Multiple colors in one single character(svg)

Vote count: 0 Im looking for a solution in SVG that enables several colors in one single character without any visual gradients. Here is an example of how I want the result to look like http://i.stack.imgur.com/BNwT9.png Here is the best solution that I can come up with. This works perfect with only 2 colors, but more colors doesnt give the result that I want. 6 asked 1 min agoSpock Let's block ads! بخوانید...

ادامه مطلب

Using variables in a mongodb query function

Vote count: 0 Hi I am using Express to work with MongoDB. I am pretty new to both. I got a find function working, it looks like this: function find (current_collection, cb) { getCollection(current_collection, function (err, collection) { collection.findOne({ 'identity.sender.id': '1234abcd' }, function (err, result) { // ... some err and cb handling }); }); } I logged the result and everything looks fine. I want to this code somewhere else, so I tried to use variables in the query and tued the function into something like this: function find (current_collection, val, cb) { getCollection(current_collection, function (err, collection) { collection.findOne({ 'identity.sender.id': val }, functio...

ادامه مطلب

Running EXE from buffer in memory

Vote count: 0 i'm trying to make exe packer 5 extract exe to buffer(in my case: vector) add new section get offset of new EP and run but after call newmain i got 0xC0000005 main.cpp: pastebin #define WIN32_LEAN_AND_MEAN #include #include "main.h" typedef struct _BASE_RELOCATION_ENTRY { WORD Offset : 12; WORD Type : 4; } BASE_RELOCATION_ENTRY; BOOL applyRelocBlock(BASE_RELOCATION_ENTRY* block, size_t entriesNum, DWORD page, PVOID newBase) { PVOID ImageBaseAddress = NtCurrentTeb()->Peb->ImageBaseAddress; BASE_RELOCATION_ENTRY* entry = block; for (int i = 0; i < entriesNum; i++) { DWORD offset = entry->Offset; DWORD type = entry->Type; if (entry == NULL || type == 0 || offset == 0) { //printf("...

ادامه مطلب

Batch file - check if package exists - if not install it

Vote count: 0 I'm trying to do simple batch script (cmd) that will check if required packages are installed, if not it will install them and then will call my command. I've managed to check if node is installed using: node -v >nul 2>nul if %errorlevel%==9009 ( echo Install node.js and restart this script goto :EOF ) now I'm trying to check if specific npm package exists. I'm able to display error when package is not installed using: npm list bootprint --depth=0 >nul 2>nul || echo bootprint not found! but every line after after that isn't evaluated. Below is my full code: @echo off setlocal EnableDelayedExpansion ::check if node.js is installed node -v >nul 2>nul if %errorlevel%==9009 ( echo...

ادامه مطلب

How to sort line on textfile using batch file

Vote count: 0 I have problem with how to sort by line on my text file. For example i have one file the name is a.txt on the a.txt i have 4 line:DATE,EVENT,TYPE,2016-07-01 14:43:17,Communication lost,UPS exteal event2016-07-01 14:38:59,UPS power on immediately,UPS exteal event2016-07-01 14:38:04,AC recovery,Input event so i want to attempt on another file, but on the another file the line must be sorted by datetime, the new datetime is on the last line and Date, Event, Type still on the first line Thank You, i hope somebody can help me. asked 15 secs agoJ-Protop Let's block ads! بخوانید...

ادامه مطلب

How to traverse a log file using batch script

Vote count: 0 I'm trying to install an sql server silently and after the completion of installation I need to check it's exit code, which is created in sqlsetup log file and as per the exit code the script will prompt user that the installation is successful or not. asked 47 secs agoSupriya Let's block ads! بخوانید...

ادامه مطلب

برچسب‌های مرتبط

writing a batch file | writing a batch file to rename files | writing a batch file to install programs | writing a batch file to copy files | writing a batch file to run an exe | writing a batch file in windows | writing a batch file to delete files | writing a batch script to rename files | writing a batch file to restart services | writing a batch file to run a command