Raised This Month: $51 Target: $400
 12% 

Getting material/model paths easy way (Windows)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 07-04-2017 , 20:29   Getting material/model paths easy way (Windows)
Reply With Quote #1

Hey!

Often when I add new models to my server I get pissed off to get all the paths for all the files I need and add to sm_downloader or anywhere else. I checked everywhere, buy couldnt fine anything usefull to make this job easier, so I needed to write my own script. Here is how it looks:



Soo, all you need to do, the new models/materials that you want to put in your server, you put in some kind of directory at your PC. Then just copy paths.bat file to that directory and open it - whoola, all the paths will open up in text editor. You just need to delete the first line and your ready to copy, paste.


Im not 100% this will work for you, because Im not an expert in batch script, but it should work.
Here is the code if anyone wants to create their own batch file

Code:
@ECHO OFF
SETLOCAL DisableDelayedExpansion
SET "r=%__CD__%"

for /r %%F in (*) do (
	SET "p=%%F"
	SETLOCAL EnableDelayedExpansion
	ECHO(!p:%r%=! >> paths.txt
	ENDLOCAL	
)
start notepad "paths.txt"

Or you can just download the 7z with the batch file over here
Attached Files
File Type: 7z paths.7z (286 Bytes, 276 views)
__________________

Last edited by boomix; 07-04-2017 at 20:31.
boomix is offline
 



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 21:40.


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