首页 > TAG信息列表 > spath

做了个pdf插件

Pdf这玩意是不太想碰的,Acrobat javascript更是不想碰。但是有个需求,似乎用js做比较合理,所以只好查资料,花了不少时间总算做好了。 需求是:打开pdf阅读时,将文件名和路径记录到某个文件(姑且称为索引文件)。这样,读了一半,以后继续阅读时,只要打开那个文件,点击某个链接,就打开读了一半的pdf,

vc获取特殊路径

//c:/windows/system32 CString FileUtil::GetSystem32Dir() { CString strPath; ::GetSystemDirectory(strPath.GetBuffer(_MAX_PATH), _MAX_PATH); strPath.ReleaseBuffer(); MessageBox(NULL,LPCTSTR(strPath), "SysPath", MB_OK); return strPath; } //C

工具库用久了,你还会原生操作 Cookie 吗?

用得好了,工具库和框架确实是一大助力,但就怕我们会因此习惯了走捷径,而忘了自己的根本依靠是什么。 前言 前端技术的飞速发展,给从业人员不可避免地带来了“疲劳”感,我们常常会感叹学不动了。于是,为了给我们“减压”,各种工具库和框架们诞生了。 对公司来说,通过工具库和框架的引入,

dxCameraControl抓拍并压缩jpeg

//由于dxCameraControl 直接拍照图片保存普遍比较大,大约3M左右,故需要压缩procedure TFormMain.capturePic(tmpStr: string); var filePathName: string; JPEGImage: TJPEGImage; begin if Trim(spath) <> '' then begin if not DirectoryExists(spath) then begi

VBA批量导入多个文件夹下的图片到PPT

1.需要导入到PPT的照片文件夹 Coding Sub InsertPicture() Dim oPPT As Presentation Dim oSlide As Slide Dim nSlide As Byte Dim oCL As CustomLayout Dim Shp As Shape Dim myFile Dim filearr() Dim filearr0() Dim myPath As String Dim sPath As String Dim FileName

python完成对本机wifi及密码获取

简单的获取本机电脑以往连接过的wifi及其密码 `import os import xml.etree.ElementTree as ET import tkinter as tk from tkinter import * import easygui icount=0 def Wifiget(): spath=easygui.diropenbox() spath=spath+’\’ worder=“netsh wlan export profile fol

Delphi中AssignFile函数

procedure TForm1.SaveLog(sFlag:string;MSG:string);var QF1:Textfile;         ----声明文本文件类型 Qfiletmp,sPath:string;begin try sPath :=ExtractFileDir(ParamStr(0))+'\Sajet_Log\'; if not directoryExists(sPath) then begin forcedirector

C# 创建文件释放 Dispose()

System.IO.File.Create("文件路径") 前提确保有此路径, 否则会报错 本以为创建文件是会自动释放的, 结果没有自动释放 ,  fs.Write(responseBytes, 0, responseBytes.Length); fs.Close(); UTF8Encoding utf8 = new UTF8Encoding(

[转载]Trace32 symbol 路径调整

Trace32 symbol 路径调整 From:http://blog.yangzhifei.com/?p=209  Issue: 在JTAG 调试过程中,经常遇到一个情况: binary elf/axf 文件是在某台特定编译服务器产生的,但是本地源代码是在另一个路径。这样导致 data.load 命令导入 elf/axf 文件后 经常 找不到对应的源文件。 Solutio

Splunk 简单笔记

Splunk Notes source="c:\logs\abc.log" | rex field=url "(?<=\/)(?<ApiId>\w+?)(?=$|\?)" | search url != "*/swagger/" | spath output=timeSpent path=durationInMs | spath output=status path=data.statusCode | evel e

win32.udiskvir.spath.b病毒处理

杀毒软件发现svchost.exe病毒,病毒目录是c:\windows\temp,这个文件是仿系统进程,可通过tasklist.exe /svc查找描述列为“暂缺”的,记住pid。 通过任务管理器中止不起作用,删除病毒文件后还会马上再生成一个新的。 可以使用 taskkill /pid 12592 /pid 12452 /f 强行终止即可。 这个病毒