Support Forums

Search found 10622 matches

by jvierra
Sat Feb 13, 2010 1:58 am
Forum: Windows PowerShell
Topic: adding days and formatting
Replies: 6
Views: 1589

adding days and formatting

You are mixing up strings and datetime objects. Iwas trying to answer your question as to how the variables worked. If you want to add a date to the range then just add it. [datetime]$a="02/08/2010" $b = $a.Adddays(6) "Your Range:{0:MM/dd}-{1:MM/dd}" -f $a,$b Or $d=[datetime]"02/08/2010" "Your Range...
by jvierra
Fri Feb 12, 2010 1:43 pm
Forum: Windows PowerShell
Topic: adding days and formatting
Replies: 6
Views: 1589

adding days and formatting

Do the following:

[string]$a=""

$a.GetType()

[int]$a=1

$a.GetType()

[datetime]$a="01/01/2001"

$a.GetType()

$a=Get-Date

$a.GetType()


by jvierra
Fri Feb 12, 2010 7:48 am
Forum: Windows PowerShell
Topic: adding days and formatting
Replies: 6
Views: 1589

adding days and formatting

This does the trick:

PS>[datetime]$a ="02/08/2010"

PS>"Your Date:02/08{0:MM/dd}" -f $a

Your Date:02/08


jvierra2010-02-12 14:48:43
by jvierra
Fri Feb 12, 2010 7:43 am
Forum: Customer Service
Topic: Scripting Answers Forum Failures
Replies: 12
Views: 4082

Scripting Answers Forum Failures

I suggest a file repository with category tags kept in a SQLExpress database. You could use MS Search enfgine to automate server side searches for content. Proper implementationof this could eliminate teh file naming and storage issues that have alway existed with this repository. In any case. From ...
by jvierra
Fri Feb 12, 2010 6:17 am
Forum: Customer Service
Topic: Scripting Answers Forum Failures
Replies: 12
Views: 4082

Scripting Answers Forum Failures

Yup! Works now. First time in a month that it has worked.

Must be your magic touch Alex.


Not a big problem but useful for noting misposted messages.


Sharing forum needs to be altered to prevent this from happening (bad posts)

by jvierra
Fri Feb 12, 2010 12:41 am
Forum: VBScript
Topic: Script to search for folders not modified since...
Replies: 2
Views: 410

Script to search for folders not modified since...

YOu could use the file system object to return the modified date of teh folder. The only issue withthis is that this date is updated frequently by the OS when it is doing housekeeping. The only accurate way to get this info is to scan the event log for the last login on a particular machine. Note th...
by jvierra
Fri Feb 12, 2010 12:10 am
Forum: Customer Service
Topic: Scripting Answers Forum Failures
Replies: 12
Views: 4082

Scripting Answers Forum Failures

SA cannot post 'Report This Post" on wrong forum - (Sharing) Server Error in Forum ApplicationAn error has occurred while sending an email.Please contact the forum administrator.Support Error Code:- err_SQLServer_send_mail_footerFile Name:- functions_send_mail.aspError details:-jmail.MessageThe mess...
by jvierra
Thu Feb 11, 2010 11:16 pm
Forum: VBScript
Topic: Script to search for folders not modified since...
Replies: 2
Views: 410

Script to search for folders not modified since...

Save yourself a big headache and use teh system utility that MIcrosoft provides just for this problem.

[code]

C:WINDOWS>delprof /?
Microsoft« Windows« Operating System User Profile Deletion Utility v5.2
by jvierra
Thu Feb 11, 2010 5:29 am
Forum: Windows PowerShell
Topic: Compare-Object and getting specific Values
Replies: 21
Views: 2326

Compare-Object and getting specific Values

Sorry - i missed that. That works too.
by jvierra
Thu Feb 11, 2010 2:49 am
Forum: Windows PowerShell
Topic: Compare-Object and getting specific Values
Replies: 21
Views: 2326

Compare-Object and getting specific Values

Unfortunately your solution will not give correct answers if you want Mb or Gb.
1234567890/(1Gb)

"Name = {0}, hours = {1:N2}Gb" -f "joe", ( 1234567890/(1Gb) )

Output: Name = joe, hours = 1.15Gb


Go to advanced search