小编cet*_*int的帖子

如何使用PowerShell创建快捷方式

我想用PowerShell为这个可执行文件创建一个快捷方式:

C:\Program Files (x86)\ColorPix\ColorPix.exe
Run Code Online (Sandbox Code Playgroud)

如何才能做到这一点?

powershell command-line shortcut desktop-shortcut

82
推荐指数
2
解决办法
13万
查看次数

如何使用t-sql命令将数据更新为大写首字母?

我的数据库上有一张表.我的表名是"公司".我想将数据"company_name"更改为大写首字母.例如;

"ABC公司"

"DEF PLASTICITY"

"Abc公司"

"可塑性"

我知道我应该使用"UPDATE"命令.但是怎么样?谢谢你的帮助!

(CONCAT不起作用)

t-sql sql-server uppercase sql-update

19
推荐指数
2
解决办法
5万
查看次数

如何使用PowerShell固定到任务栏

如何使用PowerShell将某些程序固定到Windows 7上的任务栏?请逐步解释.

以及如何修改以下代码将文件夹固定到任务栏?例如

$folder = $shell.Namespace('D:\Work') 
Run Code Online (Sandbox Code Playgroud)

在此路径中,example命名文件夹.

powershell taskbar windows-7

18
推荐指数
3
解决办法
3万
查看次数

如何在Github上获取一些Windows命令

我想通过github for windows,因为它易于使用且用户友好的设计.但我必须知道一些使用Github经典版本的代码.

例如,如何获得这些命令?

"gitk -all"

"git reset --hard HEAD"

"git diff"

谢谢你的帮助.

git github github-for-windows

6
推荐指数
1
解决办法
2195
查看次数

如何在c中声明字符串数组

#include<stdio.h>

int main()
{
int i;
string A[]={"Ahmet", "Mehmet", "Bulent", "Fuat"};

for(i=0;i<=3;i++){
printf("%s",A[i]);
}
return 0;
}
Run Code Online (Sandbox Code Playgroud)

我怎样才能看到我的数组元素作为输出?

编译器说"'字符串'未声明".

c arrays string

4
推荐指数
2
解决办法
4万
查看次数

替换C#中所有directiories和文件的名称

这个问题以前曾要求PowerShell.我想在C#中这样做.我的桌面上有一个目录.目录名称是"重命名".

C:\Users\dell\Desktop\rename
Run Code Online (Sandbox Code Playgroud)

并且"重命名"文件夹包含"a_b","b_c","c_d","d_e"文件夹.我想用" - "字符替换"_".换句话说,文件夹的新名称将是"ab","bc","cd","de"

谢谢您的帮助!

c# directory filenames replace

3
推荐指数
1
解决办法
2047
查看次数

"'System.IO.FileSystemInfo.FullPath'由于其保护级别而无法访问"C#中的错误

我有一个C#程序,如下所示.但它失败了.错误是'System.IO.FileSystemInfo.FullPath'由于其保护级别而无法访问.并且FullPath以蓝色下划线.

protected void Main(string[] args)
{
    DirectoryInfo parent = new DirectoryInfo(@"C:\Users\dell\Desktop\rename");
    foreach (DirectoryInfo child in parent.GetDirectories())
    {
        string newName = child.FullPath.Replace('_', '-');

        if (newName != child.FullPath)
        {
            child.MoveTo(newName);
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

c#

3
推荐指数
1
解决办法
1327
查看次数

创建chrome扩展后,它无法访问popup.js文件

的manifest.json

{
  "name": "Summer",
  "version": "1.0",
  "manifest_version": 2,
  "description": "This is an addition extension",
  "browser_action": {
    "default_icon": "icon.png",
    "default_popup": "popup.html"
  }
}
Run Code Online (Sandbox Code Playgroud)

popup.html

<!doctype html>
<html>
  <head>
    <title>Getting Started Extension's Popup</title>

    <!-- JavaScript and HTML must be in separate files for security. -->
    <script src="popup.js"></script>
  </head>
  <body>
        <form name="form">
            <div id="sayi1">Say? 1 :    <input type = "text" name="deger1"></div> 
            <div id="sayi2">Say? 2 :    <input type = "text" name="deger2"></div> 
            <div id="sonuc">Sonuç :     <input type = "text" name="cevap"></div>
            <div id="button"><input type="button" value="Hesapla" onclick="hesaplama()" …
Run Code Online (Sandbox Code Playgroud)

google-chrome-extension

3
推荐指数
1
解决办法
2077
查看次数

如何使用PowerShell固定开始菜单

我可以使用PowerShell将一些程序固定到Win7上的任务栏.

$shell = new-object -com "Shell.Application"  
$folder = $shell.Namespace('C:\Windows')    
$item = $folder.Parsename('notepad.exe')
$verb = $item.Verbs() | ? {$_.Name -eq 'Pin to Tas&kbar'}
if ($verb) {$verb.DoIt()}
Run Code Online (Sandbox Code Playgroud)

如何修改上述代码以将程序固定到"开始"菜单?

powershell startmenu windows-7

0
推荐指数
1
解决办法
1万
查看次数