All questions with tag [servers: batch-file]


How to get an EC2 Windows equipment is instance - id right into a set variable

I have a batch file that I would certainly such as to work on start-up of an EC2 Windows AMI. The program I would certainly such as to range from that batch file takes the instance - id of the EC2 equipment as a parameter. What is the most basic means to get that Instance ID passed as an argument to that program? From Amazon's Documentation o...
2019-12-06 14:37:21

What is the distinction between.cmd and.bat documents?

Simply interested. "Cool" individuals in our firm constantly make use of *. cmd while no person had the ability to clarify the distinction to me.
2019-12-06 14:16:45

Command line - batch file calling an additional batch file

I have a batch file which calls an additional batch file that exists in PATH directory site (primarily calling an executable with added buttons.) : bar.bat: foo.bat file1.txt foo.bat file2.txt etc. In foo.bat : foo.exe -t -s %1 bar.bat implements the first command yet leaves immidately (i.e. working with file1.txt just). Just how can I ...
2019-12-02 02:56:10

set for loop with brace in the command

I have a batch file with the adhering to code : for /f "tokens=*" %%a in ('dir /b /a-d') do ( echo Processing %%a >>%LOG% dtsrun /S(local) /NNotesLoad /A"FilePath:8="%NOTESDIR%\%%a" /AClientID=%1 >>%LOG% echo Deleting %%a >>%LOG% del %%a /q ) This is returning a mistake me...
2019-12-02 02:42:39

Is there a & (BASH) matching for DOS Batch documents?

I'm assuming not because that goes against the concept of batching. So what are my alternatives if I intend to release 2 applications in home windows in one manuscript.
2019-12-02 01:56:26

searching for customer is records folder in.bat manuscript

What is the most effective means to locate a customer is Documents folder on XP and also Vista from a set manuscript? Is it secure to think that it is %USERPROFILE% \ Documents?
2019-05-23 21:50:20

Correct strategy to locate application in 32 and also 64 bit variations of Vista/Windows 7 from CMD.EXE

BACKGROUND I have an existing CMD manuscript that functions penalty. It releases an application from PROGRAM FILES thus "%PROGRAMFILES%\MyApp\app.exe" PROBLEM it functions penalty on 32 - little bit variations of Windows (Vista, Windows 7) yet on 64 - little bit variations of Windows the application will certainly be mounted rig...
2019-05-23 17:27:23

Using XCACLS to set permissions with lengthy filenames

We require to set permissions on customers' directory sites on a Windows 2000 Server. This takes place consistently adequate and also they have to additionally be set in the order listed below or the back-ups black out. This is the standard manuscript: XCACLS foldername /g Administrators:OF /T /C /Y XCACLS foldername /E /g "DOM\Enterpris...
2019-05-19 04:07:41

How to write a dos set manuscript to create a folder framework?

I would love to have the ability to have a dos set manuscript that I can make use of to create a details folder framework listed below what ever before directory I might remain in at any kind of offered time. The details folder framework that I require is: [Directory:\ ] _ Documentation [Directory:\ ] _ ProjectManagement [Directory:\ ] Re...
2019-05-18 16:47:40

How to pipeline program result to the screen AND to a documents under Windows

I have a command which I require to evaluate in actual time (i.e. see its result in the command punctual MyProgram.exe ) and also to have a log apply for later examination ( MyProgram.exe > log.txt ) How can I make a solitary instance of the program to contact both results?
2019-05-13 02:19:22