Machine does not have full sql server installed. but following distributable packages are installed on my machine:-
Microsoft® SQL Server® 2008 R2 Command Line Utilities
Microsoft® SQL Server® 2008 R2 Native Client
I have a batch file that runs bcp utility. If i run this batch file from the folder where bcp.exe is sitting (...tools\binn) it works.
but my dump question is if there is any way i can run this bcp utility from c:\ drive only. Right now if it run from c:\ drive it says:-
bcp is not recognized as an internal or external command,...
If you add the directory (...tools\binn) to your PATH variable or use the full path of the bcp executable this will work.
To add a directory to your PATH Control Panel > System > Advanced System Settings > Environment Variables.
Then find the Path Variable under system variables and add your bcp directory to the list (seperated by ;)
Just copy the bcp.exe from the other SQL Server or from respective SQL Server path
and copy it to batch file path, where you have your script.
While running the batch script, also please run from the same path in command line.
Related
I'm trying to install "Oracle WebLogic Server 12.2.1.4" on Windows 10 with
java -jar fmw_12.2.1.4.0_wls_quick.jar command run on Git Bash. Problem is my folder account name (let's say UserŃame) has special characters and I cannot change that. This is error message that I've got:
The directory path "C:\Users\User▒ame\AppData\Local\Temp\OraInstall2022-01-05_04-13-52PM" contains invalid characters.
Unable to locate or create a temporary directory for the Oracle Universal Installer.
Are there any tricks to bypass this extraction to temp folder maybe?
I'm trying setup new local account with admin privileges but after creation I cannot log in to it... this is different problem.
You can try to set a different temp dir with this JVM property -Djava.io.tmpdir
I tried to add the mongodb programs on my windows 7 latop to run a few programs I'm working on.
I added the mongodb path to the end of windows PATH variable in system properties / advanced. This is what I have:
C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\RSA SecurID Token Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Dell\Dell Data Protection\Encryption\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\tdunphy\bin;C:\Python27;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;C:\Python27\Scripts;C:\Users\tdunphy\bin\;C:\HashiCorp\Vagrant\bin;C:\Program Files (x86)\Skype\Phone;C:\Program Files\MongoDB\Server\3.4\bin
And when I try to run the mongo programs, this is what I get:
mongod' is not recognized as an internal or external command,
operable program or batch file.
mongo
'mongo' is not recognized as an internal or external command,
operable program or batch file.
What am I doing wrong?
I was facing the same situation moments ago. What I did was backup my PATH variable and put only the MongoDB path there. Restarted CLI and it worked. Then I added the deleted paths. Don't know why this worked.
By the way, 'mongodb' will not work, it's mongo or mongod depending what you want to call.
I'm trying to follow this tutorial and part of it involves working in the Windows Command Prompt. I'm running Windows 7 on a 64 bit machine and running cmd.exe as an administrator. The issue is this line:
../nw/nw.exe app.nw
The file/folder dependency is like this:
myNodeWebkitApps
helloWorld
nw
Where nw.exe is located in folder nw and I am executing the line of code from hellowWorld. app.nw is located in the helloWorld folder. The error I recieve is '..' is not recognized as an internal or external command. Any thoughts on how to execute this would be helpful.
Use ..\nw\nw.exe app.nw (inverted slash, which is the Windows standard path separator).
We have setup a NFS share(//191.232.xx.xxx/export/share) in windows and mapped to Z:. Now we need copy a file from FTP server to Z:. When we try following it works
Z:\> (share NFS)
ftp server.com
ftp>get text.file
Above copies the file to Z:\text.file
But if I try try with UNC path, it don't work
ftp>get text.file //191.232.xx.xxx/export/share/text.file
I'm using windows native FTP and NFSCLIENT. The windows version is 2008 R2 sv1
You need to edit your registry and add an entry to disable the check on UNC paths.
HKEY_CURRENT_USER
\Software
\Microsoft
\Command Processor
Add "DisableUNCCheck" (This is a 'DWORD (32-bits) value').
Set it to hexadecimal value "1".
Now restart your environment and have another go, this should do the trick!
I am trying to get a .bat script to run on boot-up and purge the hosts file with a new one.
I have this working on Windows Server 2008 Standard X86 and it has been working consistently for over a year. I installed 'curl', hard linked it to System32 and schedule the following .bat script using local group policy:
curl x.x.x.x/latest/hosts > C:\Windows\System32\drivers\etc\hosts
Now I want to get the same script working on windows server 2008 R2. I have the same thing setup and it works if I double-click the .bat file. However, when the script runs on startup via GPO, it simply wipes the hosts file completely and I have to login manually and double-click the .bat script.
Any idea what's causing this?
Is it a difference between Server 2008 R2 and Server 2008 STD?
Try
curl.exe x.x.x.x/latest/hosts > C:\Windows\System32\drivers\etc\hosts.tmp
move C:\Windows\System32\drivers\etc\hosts.tmp C:\Windows\System32\drivers\etc\hosts