Raised This Month: $35 Target: $400
 8% 

Directory finder


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Robin955
Veteran Member
Join Date: Jun 2013
Old 10-16-2018 , 20:33   Directory finder
Reply With Quote #1

I tried out karens directory folder and command line but i keep getting full path to my files

annyone knows a fast way to print files from folder materials / models to text?

PHP Code:
materials/models/player/slow/hitler/glint.vmt
materials
/models/player/slow/hitler/mouth.vmt 
like this, i forgot how i did it.

SM Store and skindownloader2.7 doesn't work very well with this sourcemod, solved with a new downloader.
Robin955 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-17-2018 , 02:23   Re: Directory finder
Reply With Quote #2

...even you get full file paths, why not remove text front of them ?
Notepad++ can use regex ( regular expression ) pattern.

Or hold ALT button down and paint wiht mouse.


*edit

I made one SM plugin script to list loose files from server files and print into server console...
Find loosed files from specific folders with specific file extensions in each folder

So load plugin first in server.

Then enable console log in server.
con_logfile "output.log"

By reloading plugin, it will print files with path in console.

Then clear con_logfile "" and find output.log file

Last edited by Bacardi; 10-17-2018 at 02:58. Reason: Seems con_logfile only accept *.log file extension nowadays :/
Bacardi is offline
Robin955
Veteran Member
Join Date: Jun 2013
Old 10-17-2018 , 03:44   Re: Directory finder
Reply With Quote #3

alt and hold down, Exacly what i've been looking for!

thank you so much, will come in very handy even in 20 years from now.
Robin955 is offline
PC Gamer
Senior Member
Join Date: Mar 2014
Old 10-17-2018 , 12:05   Re: Directory finder
Reply With Quote #4

Nice tip with Notepad++ using hold alt with left mouse button!

This may be what you are looking for:
Link to Model Manager List Generator: https://forums.alliedmods.net/showpo...postcount=1151
Link to Batch FastDL .bz2 recursive bzip2 compress: https://forums.alliedmods.net/showthread.php?t=262453

I use these batch files in my bzip directory:
zipper.bat:
Quote:
for /F %%A in ('dir C:\temp /A-D /S /B') do bzip2.exe -z "%%A"
unzipper.bat:
Quote:
for /F %%A in ('dir C:\temp /A-D /S /B') do bunzip2.exe -d "%%A"
When I need files in bz2 format I place the folders and files into into my temp folder and run zipper. It will convert all files into bzip2 format and retains the folder structure.

However, if all you want to do is get file names into a text file, try this:
1. open command prompt
2. change working directory into the models folder you want
3. to get files in current directory type: dir *.* >models.txt
4. to get files in current directory and all sub directories type: dir *.* /s >models.txt
5. This will copy filenames into a file called models.txt

I hope this helps...

Last edited by PC Gamer; 10-17-2018 at 13:36.
PC Gamer is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:34.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode