Search found 4314 matches

by Squashman
18 Feb 2012 08:11
Forum: DOS Batch Forum
Topic: how to rename files
Replies: 18
Views: 14268

Re: how to rename files

I can get it down to this.
Google Search: </title><style><!--
Can't seem to get everything after the closing title metatag to go away.
by Squashman
18 Feb 2012 07:35
Forum: DOS Batch Forum
Topic: how to rename files
Replies: 18
Views: 14268

Re: how to rename files

I see your point.
So not only do you have to take into consideration the evil characters batch doesn't like we also have to take into consideration that the TITLE metatag is not on a line by itself.
by Squashman
18 Feb 2012 07:11
Forum: DOS Batch Forum
Topic: how to rename files
Replies: 18
Views: 14268

Re: how to rename files

Just down and dirty without taking into consideration of any poison characters. Given this as your input which is actually the first couple lines of source of this webpage. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitio...
by Squashman
17 Feb 2012 07:33
Forum: DOS Batch Forum
Topic: rename a folder
Replies: 6
Views: 6418

Re: rename a folder

Does only one folder exist in the directory? Or should the batch file keep track of the name of the folder? I was kind of thinking the same thing. But regardless of that it seems like you would need extra logic for the first time the script runs just so that is Changes the X at the end of the folde...
by Squashman
17 Feb 2012 07:24
Forum: DOS Batch Forum
Topic: using echo to enter text in a file and carriage return
Replies: 21
Views: 25504

Re: using echo to enter text in a file and carriage return

chr15b wrote:
Squashman wrote:What would this have to do with Outlook when you were using Bmail and Blat?


blat/bmail send the file via smtp as the body of an email. Outlook is where i am reading it.

yes I realize what Bmail and Blat do. You just made it sound like your script issue was an issue with Outlook.
by Squashman
17 Feb 2012 07:17
Forum: DOS Batch Forum
Topic: using echo to enter text in a file and carriage return
Replies: 21
Views: 25504

Re: using echo to enter text in a file and carriage return

What would this have to do with Outlook when you were using Bmail and Blat?
by Squashman
17 Feb 2012 07:11
Forum: DOS Batch Forum
Topic: Batch file formatting, Diskpart formatting
Replies: 19
Views: 18516

Re: Batch file formatting, Diskpart formatting

I believe this may work as well. echo Y | format %drv% /q /x /fs:ntfs There were other undocumented switches with the FORMAT command as well. I remember doing this years ago and just doing some Google Searching I found: /Y /U /Force /AutoTest These all my be for older version of the FORMAT command. ...
by Squashman
16 Feb 2012 12:28
Forum: DOS Batch Forum
Topic: rename a folder
Replies: 6
Views: 6418

Re: rename a folder

Can I see the code you tried to use?
by Squashman
16 Feb 2012 07:22
Forum: DOS Batch Forum
Topic: References to filenames and variables in *.bat
Replies: 8
Views: 7519

Re: References to filenames and variables in *.bat

Why not use FOR /L in this instance? Wouldn't that speed up the script considerably?
by Squashman
16 Feb 2012 07:09
Forum: DOS Batch Forum
Topic: for in DOS batch - MSFN Forum
Replies: 10
Views: 8476

Re: for in DOS batch - MSFN Forum

doscode wrote: I would change it later to this command

Code: Select all

rename %%x\BG_AD_3_BG*.pdf _*.pdf


You should have just stated this as your intended goal. The extra comments you made above are unrelated enough that the code changes and then the script needs to be re-written.
by Squashman
14 Feb 2012 12:17
Forum: DOS Batch Forum
Topic: Find version inside a file
Replies: 2
Views: 2914

Re: Find version inside a file

for /f "tokens=2 delims= " %%G in ('type info.txt ^| findstr /B /C:"image"') do ( IF "%%G"=="a" call a.bat IF "%%G"=="b" call b.bat ) Or you could do it like this. for /f "tokens=2 delims= " %%G in ('type info.txt ^| findstr /B /...
by Squashman
14 Feb 2012 12:09
Forum: DOS Batch Forum
Topic: Help me "How to ?" it's about batch
Replies: 8
Views: 9249

Re: Help me "How to ?" it's about batch

This isn't a PHP forum. Nor do I know PHP. But just looking at the PHP code and I would bet this code is what takes the username and password from the command line . $username = $argv[1]; $password = $argv[2]; hmm... can you please make a script .bat file so the id and password is remembered ? You ...
by Squashman
14 Feb 2012 10:22
Forum: DOS Batch Forum
Topic: Help me "How to ?" it's about batch
Replies: 8
Views: 9249

Re: Help me "How to ?" it's about batch

This isn't a PHP forum. Nor do I know PHP. But just looking at the PHP code and I would bet this code is what takes the username and password from the command line .

Code: Select all

$username = $argv[1];
$password = $argv[2];
by Squashman
14 Feb 2012 07:02
Forum: DOS Batch Forum
Topic: Help me "How to ?" it's about batch
Replies: 8
Views: 9249

Re: Help me "How to ?" it's about batch

Hi there, i'm really noob here let me explain my problem to you first : That explains the screen shots VS actually copying and pasting the TEXT from the cmd window instead. 6. sadly everytime i re-run my software i must retype my id and password can you guys help me how to command it in batch so th...
by Squashman
13 Feb 2012 21:03
Forum: DOS Batch Forum
Topic: MD5 Program for batch
Replies: 5
Views: 5591

Re: MD5 Program for batch

What did your Google search turn up?
http://www.fourmilab.ch/md5/
support.microsoft.com/kb/841290
http://www.fastsum.com/