Search found 21 matches

by jramon.r@tv3.cat
Fri Jan 29, 2016 12:21 am
Forum: Windows PowerShell
Topic: format for Textbox and DatagridView
Replies: 5
Views: 3423

format for Textbox and DatagridView

My Powershell Studio runs in a Windows 2008 R2, 64 bits. I'm trying to show data from an access table in a DataGridView. I'd like to show number data with thousand punctuation. I found the property CellStyleBuilder and here I changed the Format to Numeric. The result is that it shows one row good wi...
by jramon.r@tv3.cat
Thu Nov 26, 2015 4:47 am
Forum: Windows PowerShell
Topic: A problem with trimstart cmdlet
Replies: 3
Views: 2550

A problem with trimstart cmdlet

I have an script with the cmdlet trimstart and I've checked that when the string that I want starts with "S" it trims the "S" too. F.ex. i have $user='POSPOCPA\Super3' $user=$user.TrimStart("POSPOCPA\") The result is $user=uper3 but if I have $user='POSPOCPA\super3' $user=$user.trimstart("POSPOCPA\"...
by jramon.r@tv3.cat
Tue Oct 13, 2015 11:34 pm
Forum: Windows PowerShell
Topic: Mapping a network drive
Replies: 12
Views: 4547

Re: Mapping a network drive

I've found a solution. Adding -scope Global to the instruction it works ok

New-PSDrive -Name z -PSProvider FileSystem -Root $path -Persist -Scope Global

Thanks
by jramon.r@tv3.cat
Tue Oct 13, 2015 1:35 am
Forum: Windows PowerShell
Topic: Mapping a network drive
Replies: 12
Views: 4547

Re: Mapping a network drive

The version of PowerShell is 4.0 and the O.S is Windows 2008, it's a server.

I've already executed the script elevated.

Thanks
by jramon.r@tv3.cat
Mon Oct 12, 2015 10:53 pm
Forum: Windows PowerShell
Topic: Mapping a network drive
Replies: 12
Views: 4547

Re: Mapping a network drive

The version is 4.2.94.0
by jramon.r@tv3.cat
Thu Oct 08, 2015 11:46 pm
Forum: Windows PowerShell
Topic: Mapping a network drive
Replies: 12
Views: 4547

Re: Mapping a network drive

I've removed the tag # and the "" to the letter but it stills doesn't work.

If I run this in the PowerShell ISE it works ok but if I run this in PowerShell Studio doesn't appear the letter in the windows explorer.

What is happening?

Thank you
by jramon.r@tv3.cat
Thu Oct 08, 2015 3:02 am
Forum: Windows PowerShell
Topic: Mapping a network drive
Replies: 12
Views: 4547

Mapping a network drive

I'm trying to map a network drive in a script by two ways but any of them don't work One is #New-PSDrive -Name "Z" -PSProvider FileSystem -Root '\\server\share' -Persist It doesn't show any error but it doesn't appear in the windows explorer The other way is $net = $(New-Object -ComObject wscript.Ne...
by jramon.r@tv3.cat
Mon Feb 23, 2015 3:37 am
Forum: Former and Future Customers - Questions
Topic: how can i apply quotes?
Replies: 7
Views: 3620

Re: how can i apply quotes?

I was selecting platform 32 bits

Now is working ok

Thank you very much
by jramon.r@tv3.cat
Fri Feb 20, 2015 3:35 am
Forum: Former and Future Customers - Questions
Topic: how can i apply quotes?
Replies: 7
Views: 3620

Re: how can i apply quotes?

I have tried elevating the scripts but it is still not working.

I don't understand because in a Powershell console the cmdlet works ok but the problem is with PowerShell STudio.

The cmdlet is dirquota Quota Add /path:D:\test /limit:80GB

Thanks
by jramon.r@tv3.cat
Thu Feb 19, 2015 12:26 am
Forum: Former and Future Customers - Questions
Topic: how can i apply quotes?
Replies: 7
Views: 3620

Re: how can i apply quotes?

The instruction is
dirquota Quota Add /path:D:\test /limit:80GB

But how can I run it in elevated mode with PowerShell Studio