Search found 7 matches

by Kwan
29 Apr 2013 04:28
Forum: DOS Batch Forum
Topic: Batch File to access and operate on a remote linux machine
Replies: 3
Views: 4469

Re: Batch File to access and operate on a remote linux machi

It Seems That This "ZOC5" Program Has It's Own Scripting Language. I'm Not Sure if Batch file is what you looking for, Also it's a unix system i think it should be "Bash" commands. If You can Establish an FTP Connection from windows system to unix system, then you can use the ft...
by Kwan
24 Apr 2013 10:39
Forum: DOS Batch Forum
Topic: Batch File to access and operate on a remote linux machine
Replies: 3
Views: 4469

Batch File to access and operate on a remote linux machine

Hi, I've made a batch file to access a remote Unix machine. It works fine but now I want to use this batch to execute some commands on the unix machine. @ECHO OFF "C:\Program Files\ZOC5\zoc.exe" "/CALL:[#1361966675]" In the above line of the batch file, "zoc.exe" is the...
by Kwan
19 Oct 2012 07:17
Forum: DOS Batch Forum
Topic: Batch to copy the name of .avi file to a .srt file
Replies: 10
Views: 10212

Re: Batch to copy the name of .avi file to a .srt file

It works this way:

Code: Select all

@echo off 

dir *.mp3 /b "C:\Batch files" >>filelist.txt
for /f "tokens=1* delims=|" %%A in (filelist.txt) do (
    Ren "*.srt" "%%~nA.srt"
)

del filelist.txt


Thanks for your help guys :D
by Kwan
19 Oct 2012 07:07
Forum: DOS Batch Forum
Topic: Batch to copy the name of .avi file to a .srt file
Replies: 10
Views: 10212

Re: Batch to copy the name of .avi file to a .srt file

Squashman wrote:Assume this is you over on TechGuy as well.
http://forums.techguy.org/dos-other/107 ... -file.html

Don't need to use the delims to remove the file extension. Just use the command modifiers.

%%~na


How do I use that command?
Can you demonstrate with the rest of the code please?
by Kwan
19 Oct 2012 07:04
Forum: DOS Batch Forum
Topic: Batch to copy the name of .avi file to a .srt file
Replies: 10
Views: 10212

Re: Batch to copy the name of .avi file to a .srt file

What do you want to do exactly, are you going to rename many files in different folders using the same principle? This will go through all sub-folders in the Batch files and check to see it there is a avi file and srt file, if there, it will rename the srt file with the same name of the avi file. T...
by Kwan
19 Oct 2012 07:01
Forum: DOS Batch Forum
Topic: Batch to copy the name of .avi file to a .srt file
Replies: 10
Views: 10212

Re: Batch to copy the name of .avi file to a .srt file

The delims in the for loop, you should make it dot "." not "|" and in this case the %%a will be the files name without the extension and no need for subtracting the last 4 chars. @Echo Off dir *.avi /b "C:\Batch files" >>filelist.txt for /f "tokens=1* delims=.&quo...
by Kwan
19 Oct 2012 05:12
Forum: DOS Batch Forum
Topic: Batch to copy the name of .avi file to a .srt file
Replies: 10
Views: 10212

Batch to copy the name of .avi file to a .srt file

Can anybody tell me what am I doing wrong in this code? I have done a batch to copy the name of a .avi file to a .srt file. The problem is that the .srt file became with no name. Ex: before batch: matrix.avi subtitle.srt after batch: matrix.avi .srt expected result: matrix.avi matrix.srt Here is the...