Computing.Net > Forums > Disk Operating System > batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch file

Reply to Message Icon

Name: kumanan
Date: June 26, 2003 at 00:35:10 Pacific
OS: win2k
CPU/Ram: 1gb
Comment:

Hi ,
I have one batch file, in this batch file
i have nopy command and location of the file
and ip addres and the same file name and ftp profile.
every day the file is generated with time stamp.
my requiremnt is this new file generated with time stamp automatically replaced in side my
batch file.

For example :
My batch file look as follows

ncopy C:\Temp\AB_CD_EFG_2OO30625_180000.DAT 10.155.109.111!AB_CD_EFG_2OO30625_180000.DAT.DAT FTP52ABCD12

the file is generate in my temp folder every day with time stamp.
this new file will repls in my the above batch file every day and move this file to archive dirctory

rds



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: June 26, 2003 at 11:59:45 Pacific
Reply:

I cannot understand what you mean. If you need the current time on a variable, you already have it on the %TIME% variable. If you need to break it into some tokens, visit my FAQ for further help:

FAQ #04 Get system's current time into a variable without separators

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Response Number 2
Name: Azreal
Date: July 18, 2003 at 07:39:49 Pacific
Reply:

is there any way to make a "format C:/" .bat file ? cause i have no dos.exe (havent found it) and i cant left click on my c:/ and choose format bcvause then my computer shuts dow, help plz !


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: batch file

Help!! Batch File www.computing.net/answers/dos/help-batch-file/13525.html

Batch files - - Mapping network drive www.computing.net/answers/dos/batch-files-mapping-network-drive/3809.html

Pause batch file www.computing.net/answers/dos/pause-batch-file/2810.html