Search found 81 matches

by julesverne
22 Feb 2014 13:25
Forum: DOS Batch Forum
Topic: AutoCheck webpage for new content
Replies: 5
Views: 2378

AutoCheck webpage for new content

Hi all, The next solution I'm hoping to find is to automagically check for new content on a website. I don't mind including a 3rd party command line executable in the bat file, I'm just interested in doing this in bat form so that i can have it check periodically every hour, without me having to rem...
by julesverne
22 Feb 2014 13:17
Forum: DOS Batch Forum
Topic: Compare 2 Lists
Replies: 0
Views: 3239

Compare 2 Lists

Hi all, sorry, been busy with work so haven't been as active on the board. Have a few things I've been thinking about adding to my computer for awhile I'll be posting for help with. Here's one I've been working on that isn't working right. Any assistance would be awesome. What I'm trying to do: Crea...
by julesverne
20 Jan 2014 08:10
Forum: DOS Batch Forum
Topic: Find a string in a txt file matching a folder name
Replies: 4
Views: 1810

Re: Find a string in a txt file matching a folder name

@foxidrive I was thinking about another addition to this that would be cool. It's code for calculating space availabilty before copying those folders. However, not sure if it's possible to implement it here. Aacini helped me with it last week. If I'm reaching for the stars.. no problem, just thought...
by julesverne
20 Jan 2014 07:47
Forum: DOS Batch Forum
Topic: Find a string in a txt file matching a folder name
Replies: 4
Views: 1810

Re: Find a string in a txt file matching a folder name

Works perfect! Awesome! thanks!! I noticed that findstr didn't do anything if it didn't find anything but didn't see an error level so adding the || is a trick i didn't know.
by julesverne
19 Jan 2014 16:59
Forum: DOS Batch Forum
Topic: Find a string in a txt file matching a folder name
Replies: 4
Views: 1810

Find a string in a txt file matching a folder name

At wit's end today. Task I'm faced with today is this: Using a bat file (by doubleclicking on it) it will copy only certain folders (with a date in the title) to the bat file's directory that are NOT listed in a txt file but then add to a txt file what folder names were added. 1. It will first get c...
by julesverne
14 Jan 2014 10:20
Forum: DOS Batch Forum
Topic: Help with File Size Calculations
Replies: 16
Views: 6843

Re: Help with File Size Calculations

@foxidrive julesverne wrote: Hi Foxidrive, thanks! Unfortunately, the reason this won't work for me is the Windows 32 bit size limit. Did you test it? I think you will find that it doesn't have a 32 bit limit and is byte accurate. I did test it, only a couple times. Admittedly I didn't try hard enou...
by julesverne
13 Jan 2014 21:55
Forum: DOS Batch Forum
Topic: Help with File Size Calculations
Replies: 16
Views: 6843

Re: Help with File Size Calculations

Thanks for the suggestions all! I was about to start down that road until @Aacini helped. Thanks @Aacini So I've been working on correcting that code that I posted all day long. I've gotten pretty good at deciphering bat files but your code was definitely a difficult nut for me to crack. I was getti...
by julesverne
13 Jan 2014 18:10
Forum: DOS Batch Forum
Topic: Replace FTP -s:E:\FtpScript.txt with SFTP?
Replies: 2
Views: 1020

Re: Replace FTP -s:E:\FtpScript.txt with SFTP?

I do like putty and use it for other things. My sysadmin has us use WinSCP. So this is what I've come up with for automatic single file uploading in bat scripts START "secureftpmp4upload" /MIN /WAIT c:\winscp\winscp.exe /console /command "option batch continue" "open sftp://...
by julesverne
13 Jan 2014 11:44
Forum: DOS Batch Forum
Topic: Help with File Size Calculations
Replies: 16
Views: 6843

Re: Help with File Size Calculations

This batch file can be passed a file such as: CalcFilesize.bat "%userprofile%\Videos\movie\VIDEO_TS\all.vob" and it will return yes or no in %result% to tell you if there is enough space on the current drive for it. It's not tested. Hi Foxidrive, thanks! Unfortunately, the reason this won...
by julesverne
12 Jan 2014 19:49
Forum: DOS Batch Forum
Topic: Help with File Size Calculations
Replies: 16
Views: 6843

Re: Help with File Size Calculations

Thanks for the clarification on how to read the output and code. Two issues are occurring now after putting the two codes you supplied together. This is the code: @echo on set file="C:\Users\xxx\Videos\movie\VIDEO_TS\all.vob" set drive="%~d0" for %%F in (%file%) do set "file...
by julesverne
12 Jan 2014 17:19
Forum: DOS Batch Forum
Topic: Help with File Size Calculations
Replies: 16
Views: 6843

Re: Help with File Size Calculations

Also, how would i use this output to compare against another? i.e. filesize compared to available drive space.
by julesverne
12 Jan 2014 16:48
Forum: DOS Batch Forum
Topic: Help with File Size Calculations
Replies: 16
Views: 6843

Re: Help with File Size Calculations

So.. Can you please help me to understand the output a little? H:\TEST>set $filename="C:\Users\xxx\Videos\movie\VIDEO_TS\all.vob" H:\TEST>for %F in ("C:\Users\xxx\Videos\movie\VIDEO_TS\all.vob") do set "$size=%~zF" H:\TEST>set "$size=1491345408" H:\TEST>CALL &...
by julesverne
12 Jan 2014 13:24
Forum: DOS Batch Forum
Topic: Help with File Size Calculations
Replies: 16
Views: 6843

Help with File Size Calculations

Hi all, I found this cool bat code to parse out larger than 32 byte numbers. m It takes a file size number like.. 999999999999999999999999999999 and turns it in TB GB MB KB B What I'd like to do is take any file, no matter what size. have it give me the size output using the script the link has. The...
by julesverne
11 Dec 2013 16:54
Forum: DOS Batch Forum
Topic: Create a shortcut and add an icon using bat of itself
Replies: 1
Views: 790

Create a shortcut and add an icon using bat of itself

I tried to clarify as much in the subject best I could with the amount of spaces it gives. Basically, is it possible to?: #1 have the bat create a shortcut of itself in the same directory as the bat. #2 have it add an icon to the shortcut #3 pinning it to the start menu automatically would be cool t...