Search found 43 matches
- 01 Mar 2016 07:33
- Forum: DOS Batch Forum
- Topic: get date 1 day ago
- Replies: 1
- Views: 3206
get date 1 day ago
How to set script below that use yestarday date (date -1day)? FOR /F "tokens=2-4delims=. " %%A IN ("%date%") DO ( SET day=%%A SET month=%%B SET year=%%C ) echo FMS_%year%%month%%day%*.txt echo. ------------------------------------------------------ echo %date% %time% Downloading ...
- 28 Jun 2013 01:49
- Forum: DOS Batch Forum
- Topic: Copy only new file from server1 to server2 remote directory?
- Replies: 6
- Views: 4963
Re: Copy only new file from server1 to server2 remote direct
Here is complete code below. This code always copy all files from server1 to server2. I would like to copy only last file posted on server1 to server 2. @echo off pushd "c:\Batch\FTP_fms_froud_one\" set "db=file_database_DO_NOT_DELETE.txt" if not exist "%db%" type nul>&...
- 28 Jun 2013 00:05
- Forum: DOS Batch Forum
- Topic: Copy only new file from server1 to server2 remote directory?
- Replies: 6
- Views: 4963
Re: Copy only new file from server1 to server2 remote direct
for /f "delims=" %%a in (' dir "\\server1\remote_dir1\FMS_*.txt" /b /od ') do ----> I receive an error: The system cannot find the file specified. I think in this part is a problem : /b /od
- 27 Jun 2013 22:57
- Forum: DOS Batch Forum
- Topic: Copy only new file from server1 to server2 remote directory?
- Replies: 6
- Views: 4963
Re: Copy only new file from server1 to server2 remote direct
But how just new file from server1\remote_dir1\FMS_*.txt to \\server2\remote_dir2?
Each day on server1\remote_dir1\ is a new file FMS_*.txt which only this file should be copied to server2\remote_dir2.
Each day on server1\remote_dir1\ is a new file FMS_*.txt which only this file should be copied to server2\remote_dir2.
- 27 Jun 2013 04:58
- Forum: DOS Batch Forum
- Topic: Copy only new file from server1 to server2 remote directory?
- Replies: 6
- Views: 4963
Copy only new file from server1 to server2 remote directory?
I would like to copy only a new file from server1/remote_dir1 to server2/remote_dir2 each day. Each day on server1/remote_directory1 is created a new file and started with FMS_*.txt .
How to do it? Please write me example...
How to do it? Please write me example...
- 07 Nov 2012 08:51
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
GREAT! THAT'S IT!
THANK YOU SOOOOO MUCH!
THANK YOU SOOOOO MUCH!
- 07 Nov 2012 07:51
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
IT'S WORKING !! )))))))))))))
Only this we should do: delete files below or not copy from local drive to remote server2:
list2.ftp
startbatch.bat
file_database_DO_NOT_DELETE.txt
Only files GL_*.txt must be on remote server 2!
Only this we should do: delete files below or not copy from local drive to remote server2:
list2.ftp
startbatch.bat
file_database_DO_NOT_DELETE.txt
Only files GL_*.txt must be on remote server 2!
- 07 Nov 2012 07:24
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
Now I get files to my local drive but still no files on remote server 2. I get this from cmd:Please look at mput line. starting FTP upload ftp> open 192.xxx.xx.xx Connected to 192.xxx.xx.xx 220 (vsFTPd 2.3.0) User (192.xxx.xx.xx:(none)): 331 Please specify the password. 230 Login successful. ftp> bi...
- 07 Nov 2012 06:48
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
And how to do that?
1.) pushd to my local drive- I have this
2.) How to copy from local drive to FTP server2? in my code please.
1.) pushd to my local drive- I have this
2.) How to copy from local drive to FTP server2? in my code please.
- 07 Nov 2012 06:25
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
Can I use this syntax below to connect and save files to remote server because that's work:
ftp://"username":"password"@192.xxx.xx.xx
ftp://"username":"password"@192.xxx.xx.xx
- 07 Nov 2012 05:51
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
Is it any other way instead of net use, like pushd to copy files to remote server?
- 07 Nov 2012 04:20
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
But what if I couldn't "create" mapped disk like z: ?
- 07 Nov 2012 03:45
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
But can I use "net use -> cd /d z:\" if is it on other site windows server?
- 07 Nov 2012 01:42
- Forum: DOS Batch Forum
- Topic: Copy file to remote server with username and pasword?
- Replies: 23
- Views: 16050
Re: Copy file to remote server with username and pasword?
I receive error:
System error 53 has occurred.
The network path was not found.
The system cannot find the drive specified.
I try with this:
net use z: \\192.168.1.1\spark_data\RangerData
cd /d z:\
...
net use z: /delete
System error 53 has occurred.
The network path was not found.
The system cannot find the drive specified.
I try with this:
net use z: \\192.168.1.1\spark_data\RangerData
cd /d z:\
...
net use z: /delete
- 06 Nov 2012 15:05
- Forum: DOS Batch Forum
- Topic: Copy latest file from one windows server to another one?
- Replies: 5
- Views: 4996
Re: Copy latest file from one windows server to another one?
Your script just open new cmd window.
In those lines you don't use usernames but only passwords. Is this correct?
net use y: \\v-sss-xxx\raca\OTHERS\out racapass
net use z: \\192.xxx.xx.xx\spark_data\RangerData 123456
In those lines you don't use usernames but only passwords. Is this correct?
net use y: \\v-sss-xxx\raca\OTHERS\out racapass
net use z: \\192.xxx.xx.xx\spark_data\RangerData 123456