Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

ptrckmc249

@ptrckmc249
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how an Off Line Search application is made in .net ?
    P ptrckmc249

    You can use biterscripting internet sessions ( http://www.biterscripting.com/helppages_automatedinternet.html ) to login, fetch pages, from the server. Then use the editor commands ( http://www.biterscripting.com/helppages_editors.html ) to parse, search and output. If you had posted an exact scenario, I would have been able to get you started with exact code.

    ASP.NET tutorial csharp sysadmin sales help

  • Recommendations for a good FTP client with batch support?
    P ptrckmc249

    For flexible FTP batch/bulk uploading, take a view at this script. http://www.biterscripting.com/helppages/SS_FTPUpload.html

    It uploads an entire directory (your project) to the server. You provide the server name, login, password, local path and remote path as arguments to the script. It creates subdirectories on the FTP server as necessary. That script is open source so you can modify or make better. The FTPUpload script downloads automatically as part of biterscripting installation.

    The Lounge c++ css visual-studio com sysadmin

  • How to split a .CSV file using a key
    P ptrckmc249

    Someone else asked this quesion, I can't remember where to reply to his post. But, since I wrote the script already, wanted to post to this good site. The code is written in biterscripting. (http://www.biterscripting.com) I would like to split a csv file into secondary csv files on a key field. Ex : all.csv (1st column is the key field for splitting action) P1;X;10 P1;Y;5 P2;Z;10 P2;A;5 P3;B;30 P3;C;60 P1.csv P2.csv P3.csv P1;X;10 P2;Z;10 P3;B;30 P1;Y;5 P2;A;5 P3;B;60 Here is the script. Patrick # START OF SCRIPT var str saved_wsep set $saved_wsep = $wsep set $wsep=";" var str output_file var str input, output, row_str, c1, prev_c1 # c1 for column 1 cat "all.csv" >$input var int row, rows set $rows = { len $input } set $row = 1 while ($row <= $rows) do lex -p $row $input >$row_str wex -p "1" $row_str >$c1 if ($c1 <> $prev_c1) do # new output file begins. Is there anything in the previous file. if ($prev_c1 <> "") do echo $output > { echo $prev_c1 ".csv" } done endif set $prev_c1 = $c1 done endif set $output = $output + $row_str + "\n" set $row = $row + 1 done echo $output > { echo $prev_c1 ".csv" } set $wsep = $saved_wsep

    Database com tools tutorial

  • Batch files on Setup Project
    P ptrckmc249

    Instead of using a batch file, it has only a limited set of commands, it is far far better to use a more general scripting language for custom, pre and post build steps. I use biterScripting for this. For example, when building a deployable release, we copy certain important modules suffixed by the build time. I stored the following script into a file postbuild.txt. # Get build time var str build_time set $build_time = gettime() # Copy file (for example) buildparms.h var str file var str build_file set $file = "buildparms.h" set $build_file = $file + "_" + $build_time cat $file > { echo $build_file } # etc. This script is in file postbuild.txt. I then enter the following in the post-build steps in Visual Studio. "C:/biterScripting/biterScripting.exe" "postbuild.txt" That does it for me. You can put tons of code in the postbuild.txt script, and you can even call other (sub-) scripts from that script. We even build all the help files in the pre-build using the same approach. If you are not using biterscripting yet, you can get it free at biterscripting.com. If you already know batch commands, you will know biterscript in no time at all. Hope this helps. Patrick

    Visual Studio sysadmin help tutorial question workspace

  • How to get text from source code files ?
    P ptrckmc249

    I use the following script. Put it in a file called RemoveTags.txt and execute from MS-DOS prompt C:/biterScripting/biterScripting.exe RemoveTags.txt dir("") files("*.html") If you really have 1000 documents, it may take a while. Hope this helps. (If you don't have biterScripting, goto biterScripting.com -> download) Patrick # START OF SCRIPT var str files # patterns for file names var str dir # dir where entire project is # Collect a list of files var str fileList find -rn $files $dir > $fileList # Process files one by one while ( $fileList <> "") do # Get the next file var str file lex "1" $fileList > $file # Read the file contents into a variable. var str content cat $file > $content # Remove all <> tags while ( { sen -r "^<&>^" $content } > 0 ) sal -r "^<&>^" "" $content > null # All <> are now removed in this one file. $content has the modified content. # sen = string enumerator, sal = string alterer, & = regular expression that matches any number of # any characters. <&> means, heck find out help pages. # If you want to remove empty lines, do in a loop like above, sal "^\n\n^" "\n" $content > null # Get the file name without the ending .html, etc. stex "[^.^l" $file > null # stex means string extractor. l means last instance. [ means, ... heck find out from the help pages. # Add .txt extension to file name. set $file = $file + ".txt" # Write the modified content to the .txt file. echo -e "DEBUG: Writing file " $file echo $content > { echo $file } done # end of do after while ( $fileList <> "") # All text version are now availabel in corresponding .txt files in the same directories for # the 1000 of your files.

    ASP.NET tutorial question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups