Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Help - Archiving specific Extension files

Reply
Thread Tools Display Modes

Re: Help - Archiving specific Extension files

 
 
Al Dunbar
Guest
Posts: n/a

 
      10-03-2010


"contrex" <> wrote in message
news:4437cff6-76f7-4def-9974-...
> On 2 Oct, 18:46, Sam Kidman <samkid...@gmail.com> wrote:
>
>> archiveFolderName = "Archive for " + Date()

>
> You don't concatenate strings with a + in vbscript, and if the date
> string format set by locale settings includes slashes, you'll have an
> illegal filename.


While I agree that it is better to concatenate strings with "&", the
addition operator will, in some cases perform a concatenation. Try this:

msgbox "12" + "34"

the result I get is "1234", rather than 46. Of course, the results are less
predictable and consistent when the values operated on are contained in
variables...

/Al


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Help - Archiving specific Extension files Al Dunbar Scripting 1 10-02-2010 03:58 AM
New Thread On Old Unresolved One - Off-Line Files Sync Issue Phil Angus Active Directory 4 02-26-2010 04:12 AM
Files Remain Hidden Even though I selected show Hidden & Protected LabTechnician Windows Vista File Management 11 03-02-2008 09:08 AM
Viewing Hidden files and folders PAS Windows Vista File Management 35 02-17-2008 12:03 AM
Error reports what do they mean Joe83 Windows Vista Hardware 1 06-07-2007 03:35 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59