Search found 16 matches

by nickodemos
17 Dec 2019 13:00
Forum: DOS Batch Forum
Topic: Foxidrive has left us
Replies: 44
Views: 212016

Re: Foxidrive has left us

Just seen this myself. I have been enjoying the help of Foxidrive for probably two decades I think. He was one of the first to ever help me out when asking questions, and more than likely just writing the scripts since even after all this time I only have basic knowledge for coding anything. First h...
by nickodemos
28 Apr 2019 17:37
Forum: DOS Batch Forum
Topic: Hard link in batch
Replies: 11
Views: 13616

Re: Hard link in batch

Well I am stumped at this point. What I have does work at everything but the hardlink. Guess the thread is done unless another person can come up with something else. --Edit Stumbled on it. Script is done. @echo off setlocal REM store current directory. Using separate variable makes it REM easier to...
by nickodemos
28 Apr 2019 08:30
Forum: DOS Batch Forum
Topic: Hard link in batch
Replies: 11
Views: 13616

Re: Hard link in batch

Same thing. Access denied on hardlink creation.
by nickodemos
27 Apr 2019 21:16
Forum: DOS Batch Forum
Topic: Hard link in batch
Replies: 11
Views: 13616

Re: Hard link in batch

OK I reworked it a bit and now I can create the folder. Move the file into it. Create a symbolic link in the original directory. move "%dir%\!thefile!*.*" "%dir%\!thefile!\" mklink "%dir%\!thefile!%1" "%dir%" This will create the folder. Move the file into and then nothing. move "%dir%\!thefile!*.*"...
by nickodemos
27 Apr 2019 20:03
Forum: DOS Batch Forum
Topic: Hard link in batch
Replies: 11
Views: 13616

Re: Hard link in batch

Sorry about the late response.

I tried adding this to the end to make a hardlink but it fails with the statement below.

Code: Select all

  
  REM move all files that start with the same base name.
  mklink "!thefile!*.*" "%dir%\!thefile!\"

Code: Select all

The filename, directory name, or volume label syntax is incorrect.
by nickodemos
27 Apr 2019 08:05
Forum: DOS Batch Forum
Topic: Hard link in batch
Replies: 11
Views: 13616

Hard link in batch

Below is a script I have been using for some time. Not sure where I got it but I have tried to work in a hard link instead of move command but keep getting errors. To me as a novice it seems the commands would be simple enough to do yet nothing has worked. Any help would be appreciated. @echo off se...
by nickodemos
20 Mar 2019 17:51
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 14550

Re: Get folder size to continue

That did the trick. It is now a fully running script. Thank you once again for taking the time.
by nickodemos
20 Mar 2019 11:49
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 14550

Re: Get folder size to continue

NP. Thanks for the assist. At least the ground work is laid in case anyone else can figure out the final steps.
by nickodemos
20 Mar 2019 10:12
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 14550

Re: Get folder size to continue

Now the folder size is being chosen.

Yet we are back to this once I take the echo out and try and make the torrents.'

Image
by nickodemos
16 Mar 2019 23:01
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 14550

Re: Get folder size to continue

If I remove ECHO I get : Error creating '/cygdrive/d/SeasonPack/D:\SeasonPack\Worlds.Busiest.Cities.S01.DVDRip.x264-GHOULS.torrent': No such file or directory Something is throwing an error. If I leave ECHO I get: mktorrent.exe -a "http://www.mvgroup.org:2710/announce" -l15 "D:\SeasonPack\nadiyas.br...
by nickodemos
14 Mar 2019 00:03
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 14550

Get folder size to continue

@echo off SET OPT= -a "http://www.mvgroup.org:2710/announce" -l22 if exist %%1.torrent ( rem file exists ) else ( FOR /D %%I IN (*.*) DO mktorrent.exe %opt% "%%I" ) Right now this is a script I use to create torrents that are in a directory. The -l22 is setting the piece size at 4mb. As the folders...
by nickodemos
25 Sep 2017 14:42
Forum: DOS Batch Forum
Topic: Creating Symbolic and Hard Links with a Batch File
Replies: 16
Views: 19329

Re: Creating Symbolic and Hard Links with a Batch File

I know I am posting to an old thread but the script that foxidrive posted worked well for me except for one thing. Is it possible to have it rename FILESINLOOP.txt to FILESINLOOPOLD.txt and when done creating FILESINLOOP.txt it scans FILESINLOOPOLD.txt for dupes and removes them from FILESINLOOP.txt...
by nickodemos
26 Mar 2016 10:55
Forum: DOS Batch Forum
Topic: Clean-up code and some help
Replies: 7
Views: 9079

Re: Clean-up code and some help

Either way that helped me out a bit. Was able to eliminate about 32 lines of unneeded code with that.

Sad thing is I can see easily how you got there, I just could not see it myself. I tried a few versions like that but looks like I gave up to easily.
by nickodemos
26 Mar 2016 09:01
Forum: DOS Batch Forum
Topic: Clean-up code and some help
Replies: 7
Views: 9079

Clean-up code and some help

First thing, I am not very good at writing it on my own but, I tend to get what I need to work after a great deal of trial and error. Below will be the code that I was able to get working as well as I can but one part keeps refusing to work. The rename a file to remove part of a file name. What I ha...