Intrebare de excel

Am rulat peste noapte un script care viziteaza ceva site si ia ceva date pe care le salveaza in excel. Puteam desigur sa le fi salvat intr-un fisier text, dar pana acum a mers in excel si e mai misto asa.
Problema e ca de data asta am sarit un pic calul si e excelul cam mare.

Si nu mai raspunde la comenzi. Si nu prea stiu cum sa il salvez. Ori daca nu, s-a pierdut o noapte bine consumata si tre sa mai schimb si codul ca sa salveze in .txt

Stie cineva daca pot salva excel din ceva CMD? adica fara sa foloesc UI-ul? Sigur ca pot din scriptul ala, am ales sa n-o fac din alte motive ( buggy). Si pot sa-i dau enable, dar tot pierd ceea ce am facut si n-as vrea, decat daca n-am de ales, evident.

0 0 votes
Article Rating
Subscribe
Notify of
guest
14 Comments
Inline Feedbacks
View all comments
Buruc
Buruc
4 years ago

Oho are ceva in el poate merge asa Step 1. Find lost excel temp files in temp file folder: C:\Users\AppData\Local\Microsoft\Office\UnsavedFiles If you are a Windows 7 or XP user, follow this path: C:\Users\name\AppData\Roaming\Microsoft\Excel\ Step 2. Restore Excel temporary files: Find excel temporary files begin with “$” or “~” and end with “.TMP” > Copy and save them to another safe location > Change the extension from .TMP to .XLS or .XLSX. Nu stiu ce date bagi in el si ce faci cu ele dupa aia, eu s scrie in tabela temporara in DB direct (daca nu merge pe dev client… Read more »

Buruc
Buruc
4 years ago

N ai gasit fisierul sau nu era in locatia aia?! As schimba size aici ca nu cred ca s a pierdut

The following command will find and list all files that are larger than 500MB in the entire C:\ drive.

Get-ChildItem C:\ -recurse | where-object {$_.length -gt 524288000} | Sort-Object length | ft fullname, length -auto

Buruc
Buruc
4 years ago

Ruland din nou poti sa ai aceeasi problema ca nu stii unde si de ce crapa mai ales ca dureaza cu orele. Ideal ar fi sa activezi autosave cand creezi fisierul xls in script (nu stiu in ce e scriptul vezi mai jos vba, c#) sau sa l spargi in bucati mai mici daca ai vreun counter acolo gen foreach

https://stackoverflow.com/questions/42553502/vba-auto-save-workbook-every-10-seconds-without-activating-workbook

https://stackoverflow.com/questions/42291130/how-to-save-opened-excel-files-in-background-every-5-minutes

Mad
Mad
4 years ago

system restore? daca a fcut restore point

Mad
Mad
4 years ago

🙂

Manowar
4 years ago

Testeaza pe alt sistem inainte, dar taskkill /im excel.exe.

Daca nu-i futut complet, ar trebui sa te intrebe daca vrei sa salvezi inainte. Daca e futut, tre’ sa-i bagi un /f si ala-l fute fara save.

Repet, testeaza pe alt sistem inainte.

Claw
Claw
4 years ago

Mie tot mai simplu mi se pare cu o baza de date, cu niste selecturi mai avansate poti sa scoti ce rezultate vrei. Daca nu se mai incarca excelul inseamna ca nu e facut pentru volumul de date pe care il ai.

Buruc
Buruc
4 years ago

Dar ce problema era de a mers acu si ieri nu? Ai schimbat ceva ?