Gdate

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Gdate

Post by mdurt » Tue Oct 19, 2004 12:37 am

ok, I how do I ask this:

I remember asking about network performance monitor, ok have been using the record option for somethings. im having these charts exported to a folder in one of the drives EX: (c:\bandwidth\weekof_gdate) but i want the folder to have the Gdate (like in the EX:) put at the end of the file name. I think i should post the script i have, but tomorrow sometime during the day i should have it posted.

Before i run the script that goes through all the charts and exports them, i have this one in the beginning --
createdir>c:\bandwidth\weekof
once the whole script is complete i want it to put the gdate at the end of the folder like so (weekof_gdate) in the end of the day i should see (weekof_10_18_04).

Regards,
mdurt
________
Enzo Ferrari (car) history
Last edited by mdurt on Wed Feb 02, 2011 3:43 pm, edited 1 time in total.

Lumumba

Post by Lumumba » Tue Oct 19, 2004 8:03 am

Month>MM
Day>DD
Year>YY
Let>COMSPEC=Cmd.exe

//If the year will show up with 4 digits, cut'm off using the following line
//MidStr>%YY%,3,2,YY

//Create the directory/folder
Run>%COMSPEC% md c:\bandwidth\weekof_%MM%_%DD%_%YY%

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

more detail

Post by mdurt » Tue Oct 19, 2004 2:56 pm

OK.

It looks good but its not working

it puts in command prompt & displays

c:\adware 6>
________
mflb vaporizer
Last edited by mdurt on Wed Feb 02, 2011 3:43 pm, edited 1 time in total.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Oct 19, 2004 3:10 pm

If your Operating System is Windows9X then change

From:
Let>COMSPEC=Cmd.exe

To:
Let>COMSPEC=command.com

----------------------
Be sure to remove all trailing spaces

----------------------
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Post by mdurt » Tue Oct 19, 2004 3:13 pm

Im using windows 2000 pro

it still doing it even with removing the remove trailling spaces

Month>MM
Day>DD
Year>YY
Let>COMSPEC=Cmd.exe


//Create the directory/folder
Run>%COMSPEC% md c:\bandwidth\weekof_%MM%_%DD%_%YY%

I run it and get this
command prompt opens and stays ope with
C:\adware 6>
________
TICKETMASTER GIFT CARDS
Last edited by mdurt on Sat Mar 12, 2011 9:24 am, edited 1 time in total.

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Post by mdurt » Tue Oct 19, 2004 3:29 pm

I have this one

Month>MM
Day>DD
Year>YY
CreateDir>c:\bandwidth\weekof_%MM%_%DD%_%YY%

but the problem is it makes a second folder weekof_date

I want the script to add the date to the existing folder weekof_
________
WR426
Last edited by mdurt on Wed Feb 02, 2011 3:44 pm, edited 1 time in total.

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Post by mdurt » Tue Oct 19, 2004 3:50 pm

Thak you every one,

I figured out how to do it

Month>MM
Day>DD
Year>YY
Let>filename=c:\bandwidth\weekof
Let>newfilename=c:\bandwidth\weekof_%MM%_%DD%_%YY%
MoveFile>filename,newfilename

if theres a better way or simpler. feel free to post it.
________
Honda T360 specifications
Last edited by mdurt on Wed Feb 02, 2011 3:44 pm, edited 1 time in total.

mdurt
Junior Coder
Posts: 24
Joined: Mon Oct 11, 2004 11:41 pm

Post by mdurt » Tue Oct 19, 2004 4:15 pm

Ok new problem

Ok the script works great but now it wont change the folder if the folder is being shared.

This is how it goes the: script runs putting these charts into the c:\bandwidth\weekof folder

at the end of the whole script

i put a script to change the folder (weekof) to = (weekof_date)
the good thing is it puts all the charts into the new folder
but that folder isnt being shared on the network.
________
vaporizer store
Last edited by mdurt on Wed Feb 02, 2011 3:45 pm, edited 1 time in total.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Oct 19, 2004 5:42 pm

I am confused about what you are doing.

Your first posting sounded like you wanted to make new folders for each week date. Your recent postings sound like you are just renaming existing folders.

Perhaps you are doing both?

Would be good to see the script with explanation.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts