![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Open a file in Read format hi, I am reading some data from a CSV file. Is there anyway we can open this file only read only format ?? Thanks, Aditya |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Open a file in Read format On Aug 20, 5:47*pm, AdityaKir <Aditya...@xxxxxx> wrote: Quote: > hi, > > I am reading some data from a CSV file. Is there anyway we can open this > file only read only format ?? > > Thanks, > > Aditya |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Open a file in Read format I am trying to read a csv file using import-csv . The thing is if the CSV file is already opened. Then powershell cannot access the CSV file. Is there any way to access the CSV file even if its already open "Wes Stahler" wrote: Quote: > On Aug 20, 5:47 pm, AdityaKir <Aditya...@xxxxxx> > wrote: Quote: > > hi, > > > > I am reading some data from a CSV file. Is there anyway we can open this > > file only read only format ?? > > > > Thanks, > > > > Aditya > Are you using import-csv? > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Open a file in Read format On Aug 20, 6:45*pm, AdityaKir <Aditya...@xxxxxx> wrote: Quote: > I am trying to read a csv file using import-csv . The thing is if the CSV > file is already opened. Then powershell cannot access the CSV file. Is there > any way to access the CSV file even if its already open > > > > "Wes Stahler" wrote: Quote: > > On Aug 20, 5:47 pm, AdityaKir <Aditya...@xxxxxx> > > wrote: Quote: > > > hi, Quote: Quote: > > > I am reading some data from a CSV file. Is there anyway we can open this > > > file only read only format ?? Quote: Quote: > > > Thanks, Quote: Quote: > > > Aditya Quote: > > Are you using import-csv?- Hide quoted text - > - Show quoted text - read it. You may be able to check for the lock first before you attempt to read it. See http://www.eggheadcafe.com/software/...--part-2..aspx for an example. |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Open a file in Read format Hello AdityaKir, You can read the locked file content, pass its content to a temp file and read it back using Import-Csv: $file = [io.path]::GetTempFileName() cat lockedFile.csv | out-file $file import-csv $file --- Shay Levy Windows PowerShell MVP http://blogs.microsoft.co.il/blogs/ScriptFanatic A> I am trying to read a csv file using import-csv . The thing is if the A> CSV file is already opened. Then powershell cannot access the CSV A> file. Is there any way to access the CSV file even if its already A> open A> A> "Wes Stahler" wrote: A> Quote: Quote: >> On Aug 20, 5:47 pm, AdityaKir <Aditya...@xxxxxx> >> wrote: >> Quote: >>> hi, >>> >>> I am reading some data from a CSV file. Is there anyway we can open >>> this file only read only format ?? >>> >>> Thanks, >>> >>> Aditya >>> >> |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Cannot open file attachment in PDF format | Vista mail | |||
| in vb.net how to open a file from file download prompt without askinguser to save it or run it....just open it in internet explorer | .NET General | |||
| How to Read a MS Word file in tabular format? | VB Script | |||
| New Vista Community format hard to read | Vista General | |||
| How to open a file for read/write access in Program Files directory | Vista security | |||