Search found 81 matches

by julesverne
23 May 2014 19:03
Forum: DOS Batch Forum
Topic: Dir Listing based on filetype and filename iteration
Replies: 6
Views: 2496

Re: Dir Listing based on filetype and filename iteration

@echo on echo. > test.txt setlocal enabledelayedexpansion set /a found=0 for %%a in (*.mov) do ( for /f "usebackq delims=*" %%F in (test.txt) do ( if %%a == %%F set /a found=1 ) if !found!==0 call :getfilename %%~na pause set /a found=0 ) del test.txt exit :getfilename set originalfile=%~...
by julesverne
23 May 2014 15:14
Forum: DOS Batch Forum
Topic: Dir Listing based on filetype and filename iteration
Replies: 6
Views: 2496

Dir Listing based on filetype and filename iteration

My apologies in advance if this explanation is convoluted. Trying to make sure all the aspects of what I'm trying to do are understood. Variables are bolded. What I'm trying to do: I would like to do a for /f *.mov command to search for all .mov files named as such "Recording" in front the...
by julesverne
21 May 2014 02:28
Forum: DOS Batch Forum
Topic: display command batch
Replies: 4
Views: 1938

Re: display command batch

xiro wrote:Anyone please help me how to make a batch that display the code it would execute like copy \folder\folder\previous date....... in cmd :P


@echo on

?
by julesverne
19 May 2014 15:53
Forum: DOS Batch Forum
Topic: WinSCP vs FTP.exe
Replies: 13
Views: 3511

Re: WinSCP vs FTP.exe

Thanks foxidrive and squashman! I did get this to work. However, how do I stop it and remove the credentials? Popd doesn't work. And I want to force the user to always have to input a pw so I want to remove the credentials after every use. The other immediate reason I want to do all of what I menti...
by julesverne
19 May 2014 14:22
Forum: DOS Batch Forum
Topic: WinSCP vs FTP.exe
Replies: 13
Views: 3511

Re: WinSCP vs FTP.exe

Well what do you think will happen if you don't supply a password with the initial NET USE command. Maybe it will prompt you. H:\>net use * "\\Server\Share" /user:Squashman Enter the password for 'Squashman' to connect to 'Server': Right, but this is with a script and I will be passing th...
by julesverne
19 May 2014 12:33
Forum: DOS Batch Forum
Topic: WinSCP vs FTP.exe
Replies: 13
Views: 3511

Re: WinSCP vs FTP.exe

Try this method - I think Robocopy or xcopy will be faster than FTP. Robocopy has switches to control network efficiency, if you have large filesizes (but that won't help on a Linux target machine). @echo off net use z: \\server\share /USER:mehere Secretpassword cd /d z: dir pause Thanks foxidrive ...
by julesverne
18 May 2014 02:36
Forum: DOS Batch Forum
Topic: WinSCP vs FTP.exe
Replies: 13
Views: 3511

Re: WinSCP vs FTP.exe

Post Posted: 18 May 2014 02:48 Re: WinSCP vs FTP.exe It's on a LAN? Isn't copying the files an option? This prompted me to see if I could remember why I gave up before. Pretty sure it was because I couldn't get the syntax to work for net use to connect to the remote server. Possibly because I could...
by julesverne
18 May 2014 01:57
Forum: DOS Batch Forum
Topic: WinSCP vs FTP.exe
Replies: 13
Views: 3511

Re: WinSCP vs FTP.exe

It's been awhile since I wrote the script but I feel like I was hitting a wall when I tried just using xcopy and robocopy to connect to the server. Possibly had to do with needing login and pw credentials. But it does bring up another point. If I were to get over that wall.. would robocopy be faster...
by julesverne
18 May 2014 01:45
Forum: DOS Batch Forum
Topic: WinSCP vs FTP.exe
Replies: 13
Views: 3511

WinSCP vs FTP.exe

Has anyone done any LAN speed tests for winscp command line vs ftp.exe for windows? I googled and couldn't find anything. I'm currently using WinSCP, but curious if ftp.exe would be faster. It's a windows computer passing files to a linux server.
by julesverne
24 Feb 2014 01:51
Forum: DOS Batch Forum
Topic: Adding a server to Date and Time using Bat
Replies: 6
Views: 3173

Re: Adding a server to Date and Time using Bat

What do you need to do exactly? You can add NTP servers to in the time applet, right?


Not understanding time applet. Do you mean in Windows on the bottom right? If so, that's what I'm trying to do from cmd line or vbs or something, via some sort of script.
by julesverne
24 Feb 2014 00:26
Forum: DOS Batch Forum
Topic: Adding a server to Date and Time using Bat
Replies: 6
Views: 3173

Re: Adding a server to Date and Time using Bat

The final test (which I will try soon enough) is what happens after I restart the computer. Will it still know to sync to that IP? That server IP in the code isn't listed in date and time under time servers.. soo... I will get back to you on that. That is a no. It doesn't store that IP anywhere aft...
by julesverne
23 Feb 2014 23:59
Forum: DOS Batch Forum
Topic: Adding a server to Date and Time using Bat
Replies: 6
Views: 3173

Re: Adding a server to Date and Time using Bat

So after a bit of exhausting google searches I've come across a solution (tested only my windows 7 64 bit machine), as well as a pretty great article on understanding w32tm more. The really great article is here: http://blogs.technet.com/b/industry_insiders/archive/2006/08/29/w32-tm-service.aspx The...
by julesverne
22 Feb 2014 16:02
Forum: DOS Batch Forum
Topic: Adding a server to Date and Time using Bat
Replies: 6
Views: 3173

Re: Adding a server to Date and Time using Bat

But I cant handle the out put straightforward with the for loop/find so your checktime function does not work here... A simple google search with "public ntp server" gives enough results.I think even Microsoft has one. pardon my ignorance @npocmaka_ but I'm very ignorant of networking, as...
by julesverne
22 Feb 2014 15:34
Forum: DOS Batch Forum
Topic: AutoCheck webpage for new content
Replies: 5
Views: 2378

Re: AutoCheck webpage for new content

@npocmaka_ no, those aren't cheating for me if it accomplishes my goal. I'm unfamiliar with scripting in those options so any help you'd offer would probably be 100% from your end as I wouldn't be able to offer anything. If you do have a solution that lies outside of dostips forum standards, please ...
by julesverne
22 Feb 2014 13:51
Forum: DOS Batch Forum
Topic: Adding a server to Date and Time using Bat
Replies: 6
Views: 3173

Adding a server to Date and Time using Bat

What I'd like to do: Add a server to Date and Time and then sync the computer to that server using .bat file. I've tried to understand w32tm and net time commands looking at ss64 but I haven't figured out anything. Networking lingo is not fortay. What I have found: topic here: m The topic is a descr...