drive

how to map network drive for Clearcase View in Windows service?

不问归期 提交于 2019-12-01 08:03:11
问题 I want to map a clearcase view on network drive inside a windows service. I have tried with net use command, but it did not work properly. 回答1: You should be able to run the same kind of command than the one used when paths are too long, which is subst : subst X: c:\path\to\my\View # for snapshot view subst X: M:\myView # for dynamic view in order to map a view to a drive letter. This should work from within a service, provided: you are using your Windows account (and not the "Local System

How to make the file shareable using google drive api

感情迁移 提交于 2019-12-01 06:27:59
I am trying to get the file using google drive api, by default the file is not shareable i want to make it shareable. Here is my code:- <script type="text/javascript" src="https://apis.google.com/js/api.js"></script> <script src="https://apis.google.com/js/client.js"></script> // The Browser API key obtained from the Google Developers Console. // Replace with your own Browser API key, or your own key. var developerKey = 'XXXXXXXXXX_ff_NX66eb-XXXXXXXXXXX'; // The Client ID obtained from the Google Developers Console. Replace with your own Client ID. var clientId = "XXXXXXXXXX

How to make the file shareable using google drive api

不想你离开。 提交于 2019-12-01 03:51:26
问题 I am trying to get the file using google drive api, by default the file is not shareable i want to make it shareable. Here is my code:- <script type="text/javascript" src="https://apis.google.com/js/api.js"></script> <script src="https://apis.google.com/js/client.js"></script> // The Browser API key obtained from the Google Developers Console. // Replace with your own Browser API key, or your own key. var developerKey = 'XXXXXXXXXX_ff_NX66eb-XXXXXXXXXXX'; // The Client ID obtained from the

Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed

南笙酒味 提交于 2019-11-29 19:50:50
Using Windows 2008 R2. On our server we get this error: "Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again." when trying to map a drive on the command line. However, there are no open Explorer windows to the remote computer, and nothing shows on the remote computer when I do a "net use". Why does windows think something is connected when "net use" reports that there are no drives or folders open to it?? How can I force Win to stop thinking

relative path in BAT script

给你一囗甜甜゛ 提交于 2019-11-29 19:23:47
Here is my own program folder on my USB drive: Program\ run.bat bin\ config.ini Iris.exe library.dll etc. I would like to use run.bat to start Iris.exe I cannot use this: F:/Program/bin/Iris.exe like a shortcut, because sometimes it does not attach as drive F: ( e.g. E: or G: ) What do I need to write in the bat file to work regardless of the drive letter? I tried this in the BAT file: "\bin\Iris.exe" But it does not work. Use this in your batch file: %~dp0\bin\Iris.exe %~dp0 resolves to the full path of the folder in which the batch script resides. You can get all the required file properties

Get drive label in C#

别说谁变了你拦得住时间么 提交于 2019-11-29 13:12:54
When I use System.IO.DriveInfo.GetDrives() and look at the .VolumeLabel property of one of the drives, I see "PATRIOT XT", which is indeed the drive's volume label. If I open "My Computer", instead I see "TrueCrypt Traveler Disk", and I can't seem to find any way to programmatically retrieve that value as none of the DriveInfo properties hold that value. I also tried querying the information via WMI's Win32_LogicalDisk , but no properties contained that value there either. So any idea what the label My Computer uses is called, and more importantly, how to programmatically retrieve it? EDIT: To

How to change current working directory using a batch file

让人想犯罪 __ 提交于 2019-11-28 15:56:15
I need some help in writing a batch file. I have a path stored in a variable root as follows: set root=D:\Work\Root Then I am changing my working directory to this root as follows: cd %root% When I execute this batch file from anywhere on the D drive this is done successfully. But when I execute the same batch file from some other drive, cd %root% doesn't work. Is there a way I can get the drive letter from the root variable? I can then change the current directory to this drive first and then cd %root% shall work. Specify /D to change the drive also. CD /D %root% Just use cd /d %root% to

Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 15:36:07
问题 Using Windows 2008 R2. On our server we get this error: "Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again." when trying to map a drive on the command line. However, there are no open Explorer windows to the remote computer, and nothing shows on the remote computer when I do a "net use". Why does windows think something is connected when "net

Push git changes to a shared network drive

一曲冷凌霜 提交于 2019-11-28 15:00:01
How can a team of four people use Git (specifically Github for Windows ) to push local changes to a shared network drive? Right now (without Git) we have to copy the files from the network drive to our local machine, edit the files, and then re-upload them to the shared network drive. This is a painstaking process that can lead to lots of errors, but it seems like something Git could help us with. Can we simply install Git on the shared drive and go from there? Not sure if you found something that works for you or not, but I have a writeup on how to do that very thing on a windows network

relative path in BAT script

社会主义新天地 提交于 2019-11-28 13:43:04
问题 Here is my own program folder on my USB drive: Program\ run.bat bin\ config.ini Iris.exe library.dll etc. I would like to use run.bat to start Iris.exe I cannot use this: F:/Program/bin/Iris.exe like a shortcut, because sometimes it does not attach as drive F: ( e.g. E: or G: ) What do I need to write in the bat file to work regardless of the drive letter? I tried this in the BAT file: "\bin\Iris.exe" But it does not work. 回答1: Use this in your batch file: %~dp0\bin\Iris.exe %~dp0 resolves to