I want to use Emacs as and editor and shell.
On Windows 7 I installed cygwin , X11 and emacs.
In terminal I added to /etc/profile file these lines:
XWin -multiwindow 2> /dev/null&
export DISPLAY=:0.0
sleep 1
emacs 2> /dev/null&
I created a shortcut that execute this command: C:\rhcygwin64\bin\mintty.exe -
Now every time I start that shortcut it starts emacs. No problem.
My goal is: associate some file types like .txt , .csv and etc with emacs in order when I start foo.txt it'll open in emacs.
When I tried to do it 'Set Associtation' control it accepts only file name and it does not take '-'. Hence when I try to open foo.txt it does not work. I tried to create a shortcut to mintty.exe but it didn't work either.
Could someone help me to create association in order to start to mintty.exe but rather mintty.exe - ?
Thanks in advance
I am taking my question off .
I realized that my problem is related to subshell issue ... when I try to invoke first cygwin, then emacs under it and etc.
I decided that I will not use much Windows Explorer but rather go directly to the file and open it. This way I don't need file association.
Please close my ticket.
Thanks
I'm using windows command line MS FTP for ftp access. However I furthermore must change folder permission via command line as well. I tried CACLS command, alas that doesn't work in open ftp commmand window. Any hint's appreciated
You should be able to change permissions if you use a good GUI client.
Give the following a try and let us know if it works for you!
Filezilla
FTP Commander
FTP is an Internet standard designed by people who work together to a common goal. CACLS is a pile of Microsoft-invented stuff that FTP knows nothing about so that is not going to work unless someone implements a QUOTE command to pass it through. The nearest you can get to changing permissions is with the CHMOD command.
I need an equivalent to what
putty.exe -ssh <IPAddress>:<Port>
would do. What the above command does is open up PuTTY and asks for the servers credentials. I would like to have the equivalent for WinSCP. I searched around the internet and understood the command line WinSCP arguments and how to open a scripting interface. But what I really want is a GUI interface to open up.
Why do I want it this way? Because I have an application which has a button. When I click that button, it should open up WinSCP for that server and ask for the credentials.
Syntax is:
winscp.exe sftp://<IPAddress>:<Port>
For details see:
https://winscp.net/eng/docs/commandline
https://winscp.net/eng/docs/session_url
I am looking for an SSH client with the following features:
A terminal/shell (text-only) interface.
A GUI with directory tree (like windows explorer).
The ability to keep these views in sync-- ie. when you enter the command cd .. in the terminal, the directory tree GUI will update its view, and navigate up one directory.
I know that several SSH clients exist with 1 and 2, such as winscp. However, I have never seen 3 in it or other clients.
Does anyone know of a SSH client with this ability to synchronize the view between the terminal session and the GUI?
WinSCP does do this.
If you use the SCP method (rather than FTP or SFTP) when connecting, you can open a terminal (from Commands > Open Terminal) and cd to your heart's content. When you close the terminal, the file view changes to where you left it.
Ok so its not instant... but all you have to do is close the terminal, see the new GUI, reopen with a shortcut (CTRL+T) and you have what you're looking for.
After installing the new server, I am facing an issue.
I have lot of .vbs files, all need to run in wscript, reason, I use all those command like WScript.Echo "hello"
I want to be able to see the output when I double click the VBScript file.
But when I right click on the vbs file, I see console, I want to change the default to Windows host, globally!
How can I do that?
You can change the default scripting host to wscript.exe like so:
wscript.exe //H:wscript
If you wish to set cscript as the default host, that works in the same way:
wscript.exe //H:cscript
You can execute cscript.exe with the same arguments for the same result.
You can switch the default script engine with:
wscript //H:Wscript
Good luck!
I was able to solve it by using the following steps:
selecting the VBScript file that I want to open,
right click to select default program for this,
browse to C:/windows/windows32/wscript.exe, and select this.
In command prompt (as administrator):
To set windows script host as default script host enter:
wscript.exe //H:WScript
To set command line based script host as default script host enter:
cscript.exe //H:cscript
Check the Windows Explorer settings for the filetype *.vbs (something like tools->options->file types etc.) and change the "open with" setting to cscript.
Edit: I now advise caution with the recommendations I give below. After continuing to toggle and test my settings, I find I am unable to re-establish cscript as my default script host. (Note that I also retried the procedures given by other answers to this question.)
In addition, I tried using Process Monitor (a.k.a., "ProcMon") to find the reason for my difficulties, but unfortunately have not been unsuccessful.
Finally, I also considered going back to an earlier Windows 7 restore point, but this was complicated by the fact that I just yesterday changed my domain password. So, for now, I'm going to have to put my investigation to rest as other tasks are pressing.
On last thought...I have also considered the possibility that there are network policy security settings that are thwarting my efforts.
Original Answer: Enter the following line in a Windows batch file:
ftype VBSFile="%%SystemRoot%%\System32\WScript.exe" "%%1" %%*
Then, run a Command Prompt as an Administrator and run the batch file.
I believe the above will make the change for all users on the system. To make the change for only the logged in user, do the following (on Windows 7):
Control Panel => Programs => Default Programs => Associate a file type or protocol with a program
Then, in the Name column, scroll down to .vbs and click Change program... in the upper right. Then choose one of the Recommended Programs. If you do not see Microsoft ® Windows Based Script Host, browse to the following file:
C:\Windows\System32\wscript.exe
The guy above who right-clicked to choose the default program was right, however the path should be: C:\Windows\System32\wscript.exe