Search found 126 matches

by Acy Forsythe
05 Nov 2013 16:01
Forum: DOS Batch Forum
Topic: Taskkill not working right in Server 2003 Getting an error
Replies: 9
Views: 9039

Re: Taskkill not working right in Server 2003 Getting an err

It displays in the console, and I could not find an eventlog that had anything to do with the problem I am having or a similar error. That was one of the first places I looked. And yeah those two links were easily in the first 5 I visited looking for a solution. I find lots of similar issues, but no...
by Acy Forsythe
04 Nov 2013 16:38
Forum: DOS Batch Forum
Topic: Taskkill not working right in Server 2003 Getting an error
Replies: 9
Views: 9039

Re: Taskkill not working right in Server 2003 Getting an err

There is nothing on the path that would conflict with Taskkill.exe And again, Taskkill /? works fine. This is very frustrating because it was working fine for over a year and now the command has suddenly stopped and I think it may be due to an update or something, but I can't seem to find anything o...
by Acy Forsythe
30 Oct 2013 14:56
Forum: DOS Batch Forum
Topic: Taskkill not working right in Server 2003 Getting an error
Replies: 9
Views: 9039

Re: Taskkill not working right in Server 2003 Getting an err

I'll give that a shot Foxdrive just for process of elimination, but everything was actually working fine until a month ago.
by Acy Forsythe
30 Oct 2013 13:13
Forum: DOS Batch Forum
Topic: Taskkill not working right in Server 2003 Getting an error
Replies: 9
Views: 9039

Re: Taskkill not working right in Server 2003 Getting an err

Add the two double quotes shown below. if that doesn't change the error, rename the batch file to a different name and try it. @ECHO OFF TASKKILL /F /IM PPTVIEW.EXE start "" "C:\Program Files\Microsoft Office\Office14\pptview" "D:\PRESENTATION.pptx" /MAX exit /b The se...
by Acy Forsythe
30 Oct 2013 08:57
Forum: DOS Batch Forum
Topic: Taskkill not working right in Server 2003 Getting an error
Replies: 9
Views: 9039

Taskkill not working right in Server 2003 Getting an error

So I've got this batch script that has been working forever. There is a large monitor displaying a power point presentation. I've got a few night time clerical folks who update the power point with new info on a regular basis and the batch file is to take away the technical aspect for them. All they...
by Acy Forsythe
12 Jun 2013 14:32
Forum: DOS Batch Forum
Topic: Return character of specific position in a line
Replies: 16
Views: 15696

Re: Return character of specific position in a line

Try this if you want to separate the files. Using nested IF/ELSE can get a little convoluted, so I'd stick to the multiple IF statements until you feel more comfortable... @echo off setlocal EnableDelayedExpansion (for %%a in (*.txt) do ( for /F "usebackq delims=" %%b in ("%%a") ...
by Acy Forsythe
11 Jun 2013 07:08
Forum: DOS Batch Forum
Topic: Having an issue with echoing data from nested for loops
Replies: 2
Views: 3557

Re: Having an issue with echoing data from nested for loops

Thanks aGerman. I knew it was something simple I was missing. Can't believe I didn't spot that.
by Acy Forsythe
10 Jun 2013 16:02
Forum: DOS Batch Forum
Topic: Having an issue with echoing data from nested for loops
Replies: 2
Views: 3557

Having an issue with echoing data from nested for loops

I've got the following batch file, with a bunch of XML files in a directory. The output I need is: Date,Dealer,Account I'm getting date from the directory listing. Dealer is within the XML file itself with a tag labeled as <Dealer>1234</Dealer> Account is part of the filename Accountnumber_VerylongU...
by Acy Forsythe
07 Jun 2013 16:08
Forum: DOS Batch Forum
Topic: settings using registry
Replies: 7
Views: 6892

Re: settings using registry

I'm not sure you are in the correct forum considering you mentioned that you are writing a "really big program" But just in case you are actually writing a batch script, I'll point you in the right direction... Reg.exe is the commandline registry editor so you'll use it to import/export ke...
by Acy Forsythe
07 Jun 2013 15:55
Forum: DOS Batch Forum
Topic: set variable 2012 (currentyear - 1)
Replies: 12
Views: 10407

Re: set variable 2012 (currentyear - 1)

I also had to change the date substring to 10,4 instead of 6,4.

Code: Select all


set currentyear=%date:~6,4%

:CHANGE2LASTYEAR
set /A currentyear-=1 >%temp%\year.txt
REM Or
REM set /A currentyear=%currentyear%-1 >%temp%\year.txt

set /P year=<%temp%\year.txt

by Acy Forsythe
28 Oct 2011 15:07
Forum: DOS Batch Forum
Topic: SET commands
Replies: 8
Views: 8007

Re: SET commands

I'm with you Alan, to my knowledge you can't "Set" your environment permanently. The registry is my preferred method of saving user specific permanent data that I need to access via batch. We'll have to wait for Podde to respond, but I get the feeling, that there is a delay between script1...
by Acy Forsythe
28 Oct 2011 14:32
Forum: DOS Batch Forum
Topic: SET commands
Replies: 8
Views: 8007

Re: SET commands

What he's saying is that the cmd environment is not saving his variables from one instance of cmd to the next. The original batch file that unrars the app has all of that information, but later if that application needs an update, it's very possible the path has changed and the update script has no ...
by Acy Forsythe
28 Oct 2011 07:21
Forum: DOS Batch Forum
Topic: How can I make this file only out put 30 files
Replies: 1
Views: 2765

Re: How can I make this file only out put 30 files

Put it in a FOR /L Loop like this:

Code: Select all

FOR /L %%a IN (1,1,30) DO (

Commands

)
by Acy Forsythe
16 Aug 2011 12:41
Forum: DOS Batch Forum
Topic: A better way to build an HTML Index of files?
Replies: 24
Views: 22335

Re: A better way to build an HTML Index of files?

I wonder if quoting the LF character would fix anything... I don't have time to continue messing with it right now, but I will run some more tests this evening or tomorrow morning.
by Acy Forsythe
16 Aug 2011 11:51
Forum: DOS Batch Forum
Topic: A better way to build an HTML Index of files?
Replies: 24
Views: 22335

Re: A better way to build an HTML Index of files?

Arrrghhh...

A Co-Worker asked what I was doing and as I was explaining it to them, I started getting the bug even with only using the last two lines, which previously and consistently was avoiding the bug...