windows

so the other day i had to import an address book from windows live mail into gmail. the issue was that every time i did an export from windows live mail, it would mess up the csv, so when gmail read it it imported all the email addresses and data into the notes field. however, gmail could import a .vcf just fine. so i exported all the contacts to .vcf format and dumped them into one folder. then ran copy /B *.vcf all_in_one.vcf. this copied all the .vcf’s into one file. i was then able to import the file into gmail no problem.

you can run this using the run command, or access it via windows explorer address bar or create a shortcut. any way you do it will bring up a massive list tasks for windows 7. it was originally developed by the windows developers to show search results, so whenever you search for something in the control panel, this page is searched.

here it is -

shell:::{ED7BA470-8E54-465E-825C-99712043E01C}

in the linux world, we can always grep a command. today i needed to be able to do the same thing in dos.

help find

Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]

/V Displays all lines NOT containing the specified string.
/C Displays only the count of lines containing the string.
/N Displays line numbers with the displayed lines.
/I Ignores the case of characters when searching for the string.
/OFF[LINE] Do not skip files with offline attribute set.
"string" Specifies the text string to find.
[drive:][path]filename
Specifies a file or files to search.

If a path is not specified, FIND searches the text typed at the prompt
or piped from another command.

 

so, for example, if you wanted to find just the system model of a pc using systeminfo, you would type to following:

systeminfo | find /i "system model"

&

it can also be used with netstat

netstat -ano | find /i "80"

1: open cmd “run as administrator”
2: then type the following: netsh advfirewall firewall add rule name=realid dir=out protocol=tcp remoteport=1119 action=block

 

disable firewall rule (on real id)
netsh advfirewall firewall set rule realid new enable=no

 

enable firewall rule (off real id)
netsh advfirewall firewall set rule realid new enable=yes

 

activate the firewall rule only in the character selection screen!

 

an awesome collection of games, pick your price! there is only 4 days left for this deal.

humble indie bundle #2

i downloaded all 5 games for linux, mac and windows. i paid $20 for the 5 games. another nice thing was seeing that metasploit was the 2nd largest contributor.

  • drm free
  • ay what you want
  • helps charity
  • mac, windows, and linux

the games included are:
braid
cortex command
machinarium
osmos
revenge of the titans

windows host file location:

C:WINDOWSsystem32driversetc

 

to mount a windows share via the command line:

smbmount //machine/share /where-you-want-it

 

microsoft had the brilliant idea of sharing the system root folder by default. here is how to remove that:

start -> accessories -> admin tools -> computer management. once in computer management, expand the share folders tree and in the right window, right-click the share you want to disable and click remove.

    

if the above doesnt work, you can use regedit and do the following (if the key isnt there, you need to create it):

Hive: HKEY_LOCAL_MACHINE
Key: SYSTEMCurrentControlSetServicesLanManServerParameters
Name: AutoShareWks
Data Type: REG_DWORD
Value: 0

    

another option you can do is this (you can replace the c$ with the share you want to remove):

open the command prompt and type: net share c$ /delete

here is a list of some really handy windows keyboard shortcuts.

minimize all win + d
run win + r
task manager ctrl + shift + esc
lock keyboard win + l
system properties win + pause/break
explorer win + e
find win + f

i already had flash and photoshop installed on a windows vm and i wanted to see how it ran using wine in slackware. (i was getting sick of the marginal delay using vnc)

1) copy adobe over to linux

  • Program FilesAdobe into $HOME/.wine/drive_c/Program Files
  • Documents and SettingsAll UsersApplication DataAdobe into $HOME/.wine/drive_c/users/Public/Application Data

2) export the adobe registry branch from HKEY_LOCAL_MACHINE/SOFTWARE/Adobe

3) install additional windows libraries using winetrickssh winetricks vcrun2008 msxml3 atmlib gdiplus

4) import the registry file into wines registry

i managed to get photoshop working this way and i am having difficulty with flash. i will post more once i solve the problem.