The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
.
google unix.com



Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need script to connect sftp servers kittusri9 Shell Programming and Scripting 1 05-10-2008 05:13 AM
how to connect sftp server using script kittusri9 Shell Programming and Scripting 1 05-06-2008 07:12 AM
how to connect to windows from unix ? guhas Shell Programming and Scripting 2 12-19-2005 05:37 PM
Connect from Windows Using SSH aldowsary AIX 12 08-07-2005 03:12 PM
How do I connect windows xp to Linux Red hat unix TRUEST UNIX for Advanced & Expert Users 7 11-21-2002 12:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #15 (permalink)  
Old 04-03-2009
siquadri siquadri is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 44
Explain cmd

Quote:
Originally Posted by ilan View Post
Mohan, am i late..?

ren Test*.txt "Test%Date:/= % %Time::=.%.txt"

--ilan

Can some please explain this command?
  #16 (permalink)  
Old 04-06-2009
ilan ilan is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 101
siquadri,

ren Test*.txt "Test%Date:/= % %Time::=.%.txt"

The above command is suggested to rename a file through a script with the current data and time; and is also an good illustration of character replace in batch scripts..

if you do a.. echo %Date:/= % it will replace : with a blank space

examples:

C:\Documents and Settings\ilango>echo %Date:/= %
Mon 04 06 2009

C:\Documents and Settings\ilango>echo %Date:/=;%
Mon 04;06;2009

C:\Documents and Settings\ilango>echo %Date:/=ilan%
Mon 04ilan06ilan2009

C:\Documents and Settings\ilango>echo %Date:/=*ilan*%
Mon 04*ilan*06*ilan*2009


/ilan
Sponsored Links
Closed Thread

Bookmarks

Tags
sftp, sftp windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0