Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Ceros_X
Aug 6, 2006

U.S. Marine
If anyone would be willing, could you do a program up that would take the contents of a directory and then move the files in that directory into a directory of their own - the thing being, each file into a folder of its own (with the name of the file, minus file extension)?

An example would be

===================================

C:/porn/ dir

DebbieDoesDallas.mpg
Asian Hookers 2.avi
slobthatknob2.avi

==================================


to


===================================

C:/porn/ dir


<DIR> DebbieDoesDallas
<DIR> Asian Hookers 2
<DIR> slobthatknob2

===================================


If you were feeling froggy, it'd be nice if the program paid attention to case and spaces and was able to utilize a switch to perform this only on certain file extensions and a flag to enable subdirectories (the default being only the current directory).

I don't know how much utility there would be for something like this, but it would help me out a lot.

Thanks!

Ceros_X fucked around with this message at 18:08 on Jan 17, 2009

Adbot
ADBOT LOVES YOU

Ceros_X
Aug 6, 2006

U.S. Marine

DLCinferno posted:

Here you go. Test it out first and make sure it's doing what you want before you run it against all your stuff:

http://www.facetiousness.com/sa/DirDropper.zip


edit: needs .NET

Awesome. I tested it out on a test directory first, and basic functionality seems fine. When I ran it against the directory containing all my files it only processed the first file type listed. The other file types were not processed.

http://clb22.com/testrun.jpg [DO NOT CLICK - SITE MAY BE INFECTED WITH MALWARE]

Also, you can see that it's case specific. I also noticed during testing that if there were two of something (say, a movie file and a subtitles file) that had the same name except for extension, they were put in the same folder when DirDropper was run unfiltered. I wasn't expecting this, but it wasn't a problem - just thought I'd note it.

Awesome program, ran on 400+ files with no problem. Just wanted to post back the results so you could fine tune it. For reference, I ran it on a Vista Machine and the test folders were located on a Network Drive. No hiccups.

Thanks!

Ceros_X fucked around with this message at 08:35 on Jan 24, 2009

Ceros_X
Aug 6, 2006

U.S. Marine

Chopper posted:

Just an FYI - your site has been flagged by Google (Diagnostic Page):



Thanks, looking into it now. Until then, stay away from that page and I've edited the picture down to a text link.

Ceros_X
Aug 6, 2006

U.S. Marine

Cacahuate posted:

Hi everyone! I have a very small request: http://www.tinyappz.com/wiki/Request:1233717782

Basically I need an app that plays a sound on a very low volume level every 10 seconds or so. This is because my computer is connected to one of those things that transmit your ipod music to any radio with a free frequency. I connected my computer to my home theater via this thing but it starts making a very loud interference noise after 20 seconds without any sound and I have to constantly mute it.

Is there any way to achieve this? I tried unsuccessfully with AutoHotKey.
Thanks!

Have you thought about recording a WAV file with 10 seconds of silence and one second of.. whatever? And then playing it on repeat at low volume?

Ceros_X
Aug 6, 2006

U.S. Marine

Jeece posted:

Request:1233759677

Looking for a web app. It can be done in HTML, PHP, Java or else (whichever is the most simple/fast/efficient), but it must work with various browsers on different platforms (especially Opera on OSX, Firefox on Vista).

Problem:
I have various online pictures folders that are regulary updated with new files. The pictures are all loose within the folders, no index.html file. When I want to get a picture link to share it, I browse the "Index of /Folder" list and get the names I need. Worked fine at first, but now there are too many files and I can't always remember which are which by the name alone. Creating/editing a gallery each time I add/remove a file would be time-consuming.

Solution:
So the "app" I need would be placed inside the pics directories and create a thumbnail gallery with whatever files are in the current folder. Clicking on a thumbnail links to the original. Not a must, but it would be nice to have the corresponding filename under the thumbnail too. Child folders support isn't needed.

Thumbnails size: reduce to about 150 pixels wide. If original is smaller than that, keep original size.

If the gallery can detect the browser screen width and fill it, fine. Else, don't make it wider than 1024 pixels.

Neutral gray background.

Thanks guys!

You need to check out Jalbum ( http://jalbum.net/ ) 100s of templates, you can edit the templates pretty easily yourself, it automatically thumbnails photos and spits out gallery html ready to go. If you rerun the job after adding new folders it doesn't reprocess all the pics, just the new ones and the HTML files.

Ceros_X
Aug 6, 2006

U.S. Marine

Noia posted:

If possible, I would like a (windows) program that grabs an image (jpg or gif) from a folder, and displays it in the app window; resized to fit the app's current size preferably. After a set amount of time, it shows the next image in the folder, like a flash card. Having the option to shuffle the images would be nice.

Have to be able to set it to always on top, and preferably with just a right-click menu, so you can't accidentally exit it. Possibility of locking the borders and anchor it into place would also be nice, but not vital.

Seems a bit demanding now after typing it out..

http://www.tinyappz.com/wiki/Request:1237288635

Windows Picture Viewer wouldn't work for this??

Ceros_X
Aug 6, 2006

U.S. Marine

Polluxx Troy posted:

You're right, i have that app and can do exactly that. However, I was looking for something that could batch rename everything in C: for example, with the following folder structure:

C:
Artist 1
- Album 1
- Album 2
Artist 2
- Album 1
- Album 2
- Album 3

etc. T&R works only at the artist level, so it's still one parent folder at a time (unless there's some scheme I don't know of).

This is for like 100GB of music across hundreds of folders.

Have you checked out Media Monkey? I believe that it supports the function you desire.

Ceros_X
Aug 6, 2006

U.S. Marine

Polluxx Troy posted:

Ok, how?





That work?

Ceros_X
Aug 6, 2006

U.S. Marine

Lediur posted:

Is there a program out there that can go recursively go through a directory and unzip (or unrar) any archives it comes across and pop the results in a single folder?

http://www.extractnow.com/

This is probably one of the best programs I have ever used. You can drag and drop a folder and it will check all sub dirs for achives, light weight, faster then WinRar, able to extract files , delete original Rars, put it in the same directory or whatever you want, etc. One of the few programs I use all the time and have sent cash monies to the author for making.

Ceros_X
Aug 6, 2006

U.S. Marine

simcole posted:

that's awesome.. now if I just could do log to html first so it's semi-readable.

Have you thought about saving your logs to your dropbox folder? I know some people do this so they always have chat history no matter what PC they're on.

Ceros_X
Aug 6, 2006

U.S. Marine
Don't know if there is a pre-existing app/plugin, but I've searched a lot and posted a general SH/SC question and haven't found anything. I'm looking for a small plugin that will go through and scan my Pandora's Like's list and then output a textfile with artist/song.

If anyone knows of something pre-existing, that'd be great but if not a small greasemonkey script or somethign would be awesome.

Ceros_X
Aug 6, 2006

U.S. Marine
I'm looking for an FTP program that can be set to run only during certain hours and turns off at the appointed time - and supports auto-resume.

Right now I cobbled together WinSCP portable command lines and Task Scheduler but I have no faith that the program is stopping when it should or even that it is working correctly (worked the first day, no files downloaded last night) and pretty much is limited to syncing the remote directory. I only get 15 GB a month with free download hours from 0230-0730 so it is a bit of a pain in the rear end to get anything without staying up late. Ideally I'd be able to que up the files for download and see the program running in the foreground.

Forums upgrade/AV/etc for anyone who wants to take on that task or can recommend me a program that fits the bill (I have tried googleing it with no luck).

Ceros_X
Aug 6, 2006

U.S. Marine
I've continued to search and found that CuteFTP has a schedule option - this is good, but it still doesn't stop downloading at set hours, so I've been looking at external programs to kill the program manually at 0730. I am still interested in whatever you come up with though! (I'd really prefer being able to download individual files vs syncing whole directories, though).

Ceros_X
Aug 6, 2006

U.S. Marine

rhag posted:

Wouldn't something like http://www.freedownloadmanager.org/ work? I believe it does have scheduling. If that won't work for you, there are download managers out there that can help you out.

Hrmm - that looks very promising! I will check it out and report back. Thanks!

Ceros_X
Aug 6, 2006

U.S. Marine

rhag posted:

Wouldn't something like http://www.freedownloadmanager.org/ work? I believe it does have scheduling. If that won't work for you, there are download managers out there that can help you out.

I've tested this out and while a little awkward to figure out at first it works perfectly for what I need. If you would like a forums upgrade or an AV gift certificate or whatever just let me know. Thanks!

Ceros_X
Aug 6, 2006

U.S. Marine

the littlest prince posted:

code:
// ==UserScript==
// @name        sa_allposts
// @namespace   com.sa
// @include     *forums.somethingawful.com/showthread.php*
// @version     1
// @grant       none
// ==/UserScript==

var userid = 67042;

var url = window.location;

var argStart = url.toString().indexOf('threadid');
var argEnd = url.toString().indexOf('&', argStart);
var tid = url.toString().substring(argStart+'threadid'.length+1, argEnd)

var link = '<a href="showthread.php?threadid=' + tid + '&userid=' + userid +'">Check Out All My lovely Posts</a>';
$('div.top ul.postbuttons li:nth-child(2)').before(link);
$('div.bottom ul.postbuttons li:nth-child(1)').before(link);


This works for me on this thread, but when I try it on some other forum threads I get an error "Specified thread was not found in the live forums. " and clicking the embedded link goes to http://forums.somethingawful.com/showthread.php?threadid=http://forums.somethingawful.com/showthread.php?threadid=&userid=101247 (userID changed to my user ID).

I think perhaps I installed it wrong but it seems to work on this page sooo... Neat script, it really would come in handy quite often.

Ceros_X
Aug 6, 2006

U.S. Marine

Pollyzoid posted:

It didn't work because the script expects there to be a & in the URL after the threadid part. If it doesn't (when you're on the first page of a thread, for example) it results in the malformed URL you got.

So here's a corrected version. Also removed jQuery usage because Firefox didn't like that.
JavaScript code:
// ==UserScript==
// @name        sa_allposts
// @namespace   com.sa
// @include     *forums.somethingawful.com/showthread.php*
// @version     1.1
// @grant       none
// ==/UserScript==

var userid = 169765;

var tid = window.location.toString().match(/threadid=(\d+)/)[1];

var link = '<a href="showthread.php?threadid=' + tid + '&userid=' + userid +'">Check Out All My lovely Posts</a>';

var topButtons = document.querySelector('div.top ul.postbuttons li:nth-child(2)');
topButtons.insertAdjacentHTML('beforebegin', link);

var bottomButtons = document.querySelector('div.bottom ul.postbuttons li:nth-child(1)');
bottomButtons.insertAdjacentHTML('beforebegin', link);

You da man, works like a champ. Thanks!

Ceros_X
Aug 6, 2006

U.S. Marine
Does anyone know of an app where you can get take a list of file or folder names from an excel doc (or notepad list or whatever) and feed it into a program that would then (when pointed at the right directory) copy those files/folders to another directory? This is probably pretty niche usage but it would be super useful for what I am trying to do, any leads would be great.

Ceros_X fucked around with this message at 21:33 on Jun 21, 2015

Ceros_X
Aug 6, 2006

U.S. Marine

Trapick posted:

If you're on Linux or Mac, this is pretty easy with a bash one-liner. On windows if you can install Cygwin this should work as well:

code:
for file in $(<list_of_files.txt); do cp -r "$file" destination_folder_path; done

So this would be limited to file names only? I guess I could use Find and Replace to rename all of the file contents from folder names and then use this. Would this try and copy, say, 200 files sequentially or simultaneously?

edit: looks like -r means recursive and will get files inside a directory, so I might be able to leave the file names as is..

Ceros_X fucked around with this message at 22:11 on Jun 21, 2015

Adbot
ADBOT LOVES YOU

Ceros_X
Aug 6, 2006

U.S. Marine

Mario posted:

If you're on Windows, you don't have to bother with Cygwin unless you want it anyways -- use PowerShell instead:
code:
Get-Content files.txt | Foreach-Object { Copy-Item -Recurse $_ C:\Some\DestinationFolder }

This is a late reply but I wound up using this (I am lazy and powershell is indeed installed on Windows 7 lol) to copy about 100 movies from one hard drive to another. Having used it, I ran into several weird issues and bugs.

If there is a bracket in the folder name it does not coy the folder. If there is a bracket in a file name, it copes the file without issue. [And without reporting an error or a failure to copy] If a subdirectory of a folder has a bracket in the name it is parsed like normal.
code:
\AFTER EARTH [2013]\ -> Skipped, with all files inside
\ABOUT LAST NIGHT\About Last Night [2014].mp4 -> Copied without issue
\HANGOVER, THE 1-3\Hangover 3, The [2013] [Hardsubs] -> Copied without issue
The Directory lister program I used to make a list of folders capitalized the output - the folder names PowerShell created were all upper cased regardless of the case of the actual folder. The files inside retained their capitalization.

code:
About Last Night -> ABOUT LAST NIGHT
Not a huge issue, thought you might be interested in the trip report. I'll try the Cygwin method next time. Appreciate the advice!

Ceros_X fucked around with this message at 19:57 on Sep 8, 2015

  • Locked thread