Search found 187 matches

by Fawers
17 Jun 2012 22:40
Forum: DOS Batch Forum
Topic: .exe dos based program that contains menu won't open
Replies: 19
Views: 14077

Re: .exe dos based program that contains menu won't open

Do you have any code to share? Maybe it'll be easier for us to help you with some code.

And give some path examples, please! :D
by Fawers
17 Jun 2012 22:37
Forum: DOS Batch Forum
Topic: calling python script in batch file..
Replies: 4
Views: 4669

Re: calling python script in batch file..

I'm not sure if the arguments will be passed onto the script though, there will be a way if this doesn't work (maybe a switch?). As far as I know (and tested), arguments in Python don't need switches to be passed on. And, just like cmd, its first argument (0) is always the program full path. Just t...
by Fawers
17 Jun 2012 22:26
Forum: DOS Batch Forum
Topic: calling python script in batch file..
Replies: 4
Views: 4669

Re: calling python script in batch file..

I'm studying Python so I think I might be able to help you. Could you post your python code? Edit Wait. Maybe your P code isn't necessary. Try this: @echo off cd \input for %%f in (*.txt) do ( echo "%%~nf" "D:\impressio\deployment code\add_null.py" "%%~f" ".\%%~Nf_...
by Fawers
15 Jun 2012 15:31
Forum: DOS Batch Forum
Topic: ~ LIVE STREAMS via Batch ~
Replies: 4
Views: 4062

Re: ~ LIVE STREAMS via Batch ~

Now it looks even better! And I, too, prefer VLC. Here's another suggestion: put "%programfiles%\internet explorer\iexplore.exe" in a variable (e.g., iexplorer) so you don't have to rewrite it over and over again. set "iexplorer=%programfiles%\internet explorer\iexplore.exe" ::re...
by Fawers
15 Jun 2012 15:15
Forum: DOS Batch Forum
Topic: The Forum has been repaired !! :)
Replies: 4
Views: 5256

Re: The Forum has been repaired !! :)

Thank you very much! I came here every day to see if it was back online.
by Fawers
07 Jun 2012 22:29
Forum: DOS Batch Forum
Topic: ~ LIVE STREAMS via Batch ~
Replies: 4
Views: 4062

Re: ~ LIVE STREAMS via Batch ~

Nice.
But I think it won't work in any non-English computer. Maybe you'd prefer using %programfiles% instead of C:\Program Files.

Edit:
A set /p (or choice, for those who have it) based menu would also be cool.
by Fawers
06 Jun 2012 21:48
Forum: DOS Batch Forum
Topic: Undocumented FINDSTR features and limitations
Replies: 29
Views: 44780

Re: Undocumented FINDSTR features and limitations

How could I not see this before? I have so many doubts on using FINDSTR.

Added this page to my favs. Gonna read it when I've got enough time to.
Thanks, Dave.
by Fawers
06 Jun 2012 21:38
Forum: DOS Batch Forum
Topic: Stopping services, restarting services(safemode)
Replies: 17
Views: 13735

Re: Stopping services, restarting services(safemode)

There must be an easier way to do this, but all I can think right now is a nested FOR loop. Which list would be bigger, one containing names of services to DISABLE, or one containing names of services to keep? You can create a .txt file with the services names you want to disable OR keep, and then r...
by Fawers
06 Jun 2012 16:37
Forum: DOS Batch Forum
Topic: Stopping services, restarting services(safemode)
Replies: 17
Views: 13735

Re: Stopping services, restarting services(safemode)

Question 1. Skip the first line
Use the "skip" option in FOR /F.

Code: Select all

for /f "skip=1 delims=" %a in ('net start') do @echo %a


Question 2. "Put in a service to skip"
I'll ask you to be a little bit more specific.
by Fawers
06 Jun 2012 09:36
Forum: DOS Batch Forum
Topic: How to sequence two file conversion commands?
Replies: 9
Views: 8057

Re: How to sequence two file conversion commands?

I think batch files can't "recognize" directories on a server, but it might work if you map this network path to a network drive; have "\\server\project\textures" as a new drive letter, e.g., "S:\". So instead of running your batch from "\\server\project\textures&...
by Fawers
05 Jun 2012 21:26
Forum: DOS Batch Forum
Topic: How to sequence two file conversion commands?
Replies: 9
Views: 8057

Re: How to sequence two file conversion commands?

@Fawers, thanks for the help!! really appreciate it. Your bat worked perfectly but I've chosen to use aGermans one because it skips the whole _tmp stage, sorry I thought that _tmp stage would be neccessary No problem at all. Feel free to choose the codes that work better for you, always. So say Im ...
by Fawers
05 Jun 2012 21:17
Forum: DOS Batch Forum
Topic: Batch Script to Toggle Numlock?
Replies: 4
Views: 5295

Re: Batch Script to Toggle Numlock?

You're right. After so many replies, it sure is better to create a whole new thread so it can gather more and more replies.
I am so sorry for my naiveness.
by Fawers
05 Jun 2012 18:41
Forum: DOS Batch Forum
Topic: Batch Script to Toggle Numlock?
Replies: 4
Views: 5295

Re: Batch Script to Toggle Numlock?

You can then save this .vbs file so you don't have to create it whenever you run numlock.cmd.

By the way, I think you should have posted this on your original thread.
by Fawers
05 Jun 2012 16:03
Forum: DOS Batch Forum
Topic: How to sequence two file conversion commands?
Replies: 9
Views: 8057

Re: How to sequence two file conversion commands?

I'm neither acquainted to this program nor to this image format, so I'll try to help following your parameters. Are these pieces of code written in different batch files? You can easily call a second batch from the first one with the CALL command. CALL /? for help. Convert.bat: @echo off for %%i in ...