68 reputation
117
bio website
location Hong Kong, Hong Kong
age
visits member for 4 years, 7 months
seen Jan 3 '12 at 9:10

Feb
12
awarded  Famous Question
Jun
7
awarded  Notable Question
Dec
18
awarded  Popular Question
Aug
4
asked Using syslog to monitor stopped services on Win2k
Jul
8
comment Upload only the latest file with WinSCP
@shf301 - looks like when I put the same command on the other machine - i see LastFile=dir /b /od c:\files\Completed* rather than LastFile=filename.ext
Jul
7
awarded  Commentator
Jul
7
comment Upload only the latest file with WinSCP
@shf301 - excuse my ignorance but what does the %%i do? when i remove @echo off, I actually see that it is passing %i. Reason i'm asking, when i try the script on a different machine, the for loop doesn't keep the filename as how it worked on my PC. the "for" still looks like it splits the spaces and can't recognise them.
Jul
2
awarded  Supporter
Jul
2
comment Upload only the latest file with WinSCP
@shf301 - thanks so much. This worked exactly as how I wanted it set up. Appreciate your help. If it is not too much to ask, I have another scripting problem I would like your assistance on if possible. I don't want to be rude and paste it here before I asked if you were willing to take a look :) Please let me know. Thanks!
Jul
2
awarded  Scholar
Jul
2
accepted Upload only the latest file with WinSCP
Jun
30
comment Upload only the latest file with WinSCP
@shf301 - hi, this is a very useful tip to know. At the moment, I believe it is doing exactly what it is meant to do. However, the LastFile variable does not seem to capture the entire filename if it contains spaces? Excuse my ignorance but how do i modify it to capture the spaces in the filename? The winscp log error states "The system cannot find the file specified "c:\files\Completed\Copy" but the actual filename is "c:\files\Completed\Copy of text.txt" Appreciate it if you could show me how to manipulate the "for" line
Jun
29
asked Upload only the latest file with WinSCP
May
17
comment Problem opening password encrypted .docx file on Word 2003
Thanks Richard. I have already tried Office repair. Also tried renaming but from the same PC since it doesn't actually resolve the issue if I opened it from another PC and renamed it since the file is specifically meant for him and he is the only one who will be given the password to decrypt.
May
15
asked Problem opening password encrypted .docx file on Word 2003
May
3
awarded  Tumbleweed
Mar
16
awarded  Teacher
Mar
16
answered Can you recommend a good asset management and issue tracking system?
Mar
16
answered Super-silent (mid tower) case and fan combo
Mar
12
comment Problems with XP, Office, and PC in general - any ideas?
@raven: ahhaha ooops :)