Tagged Questions
1
vote
1answer
17 views
Batch - User Input to Command Prompt (IF statement issue)
I am currently creating a segment of a larger batch file that needs to let the user interact with the command prompt, but I seem to be having issues with the IF Statements.
The following code is what ...
0
votes
1answer
31 views
Windows Shell Script “is was unexpected at this time.” in Command Prompt
Very new to this, so I apologize if this is something simple. I am running the following .bat script in Command Prompt for an assignment.
@ECHO off
TITLE "KnockKnock.bat - The KnockKnock joke game!"
...
0
votes
1answer
10 views
On IIS, batch file variables do not seem to be working.
I am building virtual directories for a setup using the following:
echo "Current Drive: %~d1"
set /p var cdr="Enter Install Directory "
cd %windir%\system32\inetsrv
appcmd add vdir /app.name:"Default ...
0
votes
0answers
25 views
Delete SFX file after extraction [migrated]
I created a SFX to extract some files. After the extraction, I need that the SFX file is deleted.
As far as I have seen, WinRar does not offer such option. So I thought to run some DOS command -prompt ...
1
vote
2answers
43 views
How Can I run a bat file simultaneously with the vbs script running from same bat file
How Can I run a bat file simultaneously with the vbs script running from same bat file.
ie., i can input data into the cmd and the vbs file is also open along with it.
i am planning to make an ...
-4
votes
0answers
26 views
Can i create a batch file to run in a folder to replace all the file name extensions to one particular type? [closed]
Like change all htm files to .txt files in any particular folder when i place the batch file in that folder and run it.
0
votes
2answers
32 views
Batch start command not opening program
When I enter the following from a command prompt:
start myprog.exe
It opens the program in a command window, but it doesn't start the actual program itself.
Does anyone know what I'm doing wrong ...
0
votes
4answers
99 views
Execute Batch Script From Environment Variable
I've set an system environment variable called find which points to a batch script. I did this so that in Win command prompt i could type %find% and it would execute my script. It works the only ...
0
votes
2answers
57 views
Using Wild card for removing directory in dos
I am working on a application that needs to remove folders from inside a folder. BUT the Folder name will have the same general name minus the end of it. NA_monthlyGP_20130131, The numbers will ...
1
vote
3answers
158 views
Locate and Delete Folder(s) with Command Prompt
At work we handle people every day who wants help regarding signing on to their Online Bank from home. Some times we need the user to delete files and guiding them to do this, can be tiresome and ...
0
votes
1answer
26 views
Batch File Ending Prematurely
I have a batch file with the following commands (to set up a compiler):
del Yylex.java
jflex scanner.flex
del parser.java
java -jar java-cup-11a.jar parser.cup
However, for some reason, after ...
0
votes
2answers
50 views
Batch: echo some text and read the rest of the line
I've got
echo sometext
set /p s=
but it will output the following:
sometext
*will read this line*
and I want it to be in the same line like this:
sometext *will read the rest of the line*
...
-3
votes
1answer
145 views
How to kill SYSTEM process in windows via batch [closed]
How can I kill a SYSTEM's process via batch command.
I know we can use
TASKKILL /IM notepad.exe
I need to kill notepad which is running by system
in task manager it shows
notepad.exe *32
0
votes
3answers
91 views
Run a java program at startup in windows only after mysql is running?
I have a java program which uses Mysql database(using mysql which comes with Xaamp).
I ve written batch script to start xaamp and run java program.
How can i make sure that my java program is executed ...
0
votes
3answers
682 views
Looking for batch file to insert new lines into text file
I have a batch file that takes the contents of an image upload directory from an admin portal and generates a text file containing an img src attribute for each image.
At this point each of these ...